From 325bfb49666ac83c0da1f0f1d3d8c73a99c3d6bf Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 20 Mar 2015 11:06:05 +0100 Subject: clean up syntax --- netlink-notify.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netlink-notify.c b/netlink-notify.c index 302d4a6..0e064f0 100644 --- a/netlink-notify.c +++ b/netlink-notify.c @@ -408,7 +408,7 @@ int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) { notify_notification_update(notification, TEXT_TOPIC, notifystr, icon); - while (!notify_notification_show (notification, &error)) { + while (notify_notification_show(notification, &error) == FALSE) { if (errcount > 1) { fprintf(stderr, "%s: Looks like we can not reconnect to notification daemon... Exiting.\n", program); goto out; @@ -416,14 +416,14 @@ int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) { g_printerr("%s: Error \"%s\" while trying to show notification. Trying to reconnect.\n", program, error->message); errcount++; - g_error_free (error); + g_error_free(error); error = NULL; - notify_uninit (); + notify_uninit(); usleep (500 * 1000); - if (!notify_init (PROGNAME)) { + if (notify_init(PROGNAME) == FALSE) { fprintf(stderr, "%s: Can't create notify.\n", program); goto out; } @@ -476,7 +476,7 @@ int main (int argc, char **argv) { goto out40; } - if (!notify_init (PROGNAME)) { + if (notify_init(PROGNAME) == FALSE) { fprintf (stderr, "%s: Can't create notify.\n", program); goto out30; } -- cgit v1.2.3-70-g09d2