diff options
Diffstat (limited to 'glib/test-dbus-glib.c')
-rw-r--r-- | glib/test-dbus-glib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/glib/test-dbus-glib.c b/glib/test-dbus-glib.c index 085e856c..b1ca2d3c 100644 --- a/glib/test-dbus-glib.c +++ b/glib/test-dbus-glib.c @@ -1,3 +1,4 @@ +/* -*- mode: C; c-file-style: "gnu" -*- */ #include "dbus-glib.h" #include <stdio.h> @@ -10,6 +11,12 @@ main (int argc, char **argv) GMainLoop *loop; + if (argc < 2) + { + fprintf (stderr, "Give the server address as an argument\n"); + return 1; + } + loop = g_main_loop_new (NULL, FALSE); connection = dbus_connection_open (argv[1], &result); |