diff options
Diffstat (limited to 'notifier/dbus.c')
-rw-r--r-- | notifier/dbus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/notifier/dbus.c b/notifier/dbus.c index 1f1c43a21..4b51b6258 100644 --- a/notifier/dbus.c +++ b/notifier/dbus.c @@ -16,6 +16,8 @@ * * Contents: * + * main() - Read events and send DBUS notifications. + * acquire_lock() - Acquire a lock so we only have a single notifier running. */ /* @@ -154,7 +156,7 @@ enum * Local functions... */ -static int acquire_lock(int *fd); +static int acquire_lock(int *fd, char *lockfile, size_t locksize); /* @@ -201,7 +203,7 @@ main(int argc, /* I - Number of command-line args */ return (1); } - if (strcmp(argv[1], "dbus:")) + if (strncmp(argv[1], "dbus:", 5)) { fprintf(stderr, "ERROR: Bad URI \"%s\"!\n", argv[1]); return (1); |