diff options
author | Christian Hesse <mail@eworm.de> | 2013-08-08 10:00:32 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-08-08 10:00:32 +0200 |
commit | fce25cd2ccb08ae09eb19d7fee4e87b5aab9c177 (patch) | |
tree | 0668aaec690362b71f55ae8a458a35c2f75cd260 | |
parent | 425e0a02b2902e98e0fec4ea3ae1a0712fd1143b (diff) | |
download | udev-block-notify-0.7.1.tar.gz udev-block-notify-0.7.1.tar.zst |
indent includes0.7.1
-rw-r--r-- | udev-block-notify.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c index faa142e..2a699b6 100644 --- a/udev-block-notify.c +++ b/udev-block-notify.c @@ -55,11 +55,11 @@ NotifyNotification * get_notification(struct notifications *notifications, dev_t notifications = notifications->next; notifications->devnum = devnum; notifications->notification = -#if NOTIFY_CHECK_VERSION(0, 7, 0) - notify_notification_new(NULL, NULL, NULL); -#else - notify_notification_new(NULL, NULL, NULL, NULL); -#endif +# if NOTIFY_CHECK_VERSION(0, 7, 0) + notify_notification_new(NULL, NULL, NULL); +# else + notify_notification_new(NULL, NULL, NULL, NULL); +# endif notifications->next = NULL; notify_notification_set_category(notifications->notification, PROGNAME); @@ -103,9 +103,9 @@ int main (int argc, char ** argv) { struct udev *udev = NULL; printf("%s: %s v%s (compiled: " __DATE__ ", " __TIME__ -#if DEBUG +# if DEBUG ", with debug output" -#endif +# endif ")\n", argv[0], PROGNAME, VERSION); if(!notify_init("Udev-Block-Notification")) { @@ -143,9 +143,9 @@ int main (int argc, char ** argv) { devnum = udev_device_get_devnum(dev); major = major(devnum); minor = minor(devnum); -#if DEBUG +# if DEBUG printf("%s: Processing device %d:%d\n", argv[0], major, minor); -#endif +# endif action = udev_device_get_action(dev)[0]; switch(action) { case 'a': @@ -191,9 +191,9 @@ int main (int argc, char ** argv) { notifystr = appendstr(TEXT_TAG, notifystr, "Partition Type", value); } -#if DEBUG +# if DEBUG printf("%s: %s\n", argv[0], notifystr); -#endif +# endif /* get a notification */ notification = get_notification(notifications, devnum); |