aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-09-06 00:33:33 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-09-08 15:24:47 +0200
commit7922e0d8cf83d6be01af1777b33089732344b672 (patch)
tree4c931ae18b832d4c439aba9363ae8576d9b6cf97 /test
parent9b28b85284abd8de9dabb8adb9cd74eda065bc79 (diff)
downloadayatana-indicator-printers-7922e0d8cf83d6be01af1777b33089732344b672.tar.gz
ayatana-indicator-printers-7922e0d8cf83d6be01af1777b33089732344b672.tar.bz2
ayatana-indicator-printers-7922e0d8cf83d6be01af1777b33089732344b672.zip
Fix deprecations and build warnings
Fixes AyatanaIndicators/ayatana-indicator-printers#3.
Diffstat (limited to 'test')
-rw-r--r--test/mock-cups-notifier.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/mock-cups-notifier.c b/test/mock-cups-notifier.c
index 10d5fe5..7903f91 100644
--- a/test/mock-cups-notifier.c
+++ b/test/mock-cups-notifier.c
@@ -6,12 +6,10 @@
int main (int argc, char **argv)
{
GMainLoop *loop;
- CupsNotifier *notifier;
+ CupsNotifier *notifier = NULL;
GDBusConnection *con;
GError *error = NULL;
- g_type_init ();
-
loop = g_main_loop_new (NULL, FALSE);
con = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error);