diff options
author | Christian Hesse <mail@eworm.de> | 2015-03-20 11:06:05 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-03-20 11:06:05 +0100 |
commit | 325bfb49666ac83c0da1f0f1d3d8c73a99c3d6bf (patch) | |
tree | 0c03925876f0aa49fefa033b36a55c2d0d398cf7 | |
parent | 1bb37b7a6b444e42f86f9168191f3133f2d2eb18 (diff) | |
download | netlink-notify-325bfb49666ac83c0da1f0f1d3d8c73a99c3d6bf.tar.gz netlink-notify-325bfb49666ac83c0da1f0f1d3d8c73a99c3d6bf.tar.zst |
clean up syntax
-rw-r--r-- | netlink-notify.c | 10 |
1 files 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; } |