diff options
author | Christian Hesse <mail@eworm.de> | 2019-10-10 09:28:32 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-10-10 09:28:32 +0200 |
commit | f6f4c79d17e60d3fa529e3a140d1e87b638c512d (patch) | |
tree | 40aa9dac60abc9af9ea4c2c731ceedd9ce603373 | |
parent | 974b6c1ce11b224958f976ecab030a8c9bf5faf9 (diff) | |
download | udev-block-notify-f6f4c79d17e60d3fa529e3a140d1e87b638c512d.tar.gz udev-block-notify-f6f4c79d17e60d3fa529e3a140d1e87b638c512d.tar.zst |
this is condition, not loop
-rw-r--r-- | udev-block-notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c index 34604af..c79c746 100644 --- a/udev-block-notify.c +++ b/udev-block-notify.c @@ -294,7 +294,7 @@ int main (int argc, char ** argv) { notify_notification_update(notification, TEXT_TOPIC, notifystr, icon); notify_notification_set_timeout(notification, notification_timeout); - while(notify_notification_show(notification, &error) == FALSE) { + if (notify_notification_show(notification, &error) == FALSE) { g_printerr("%s: Error showing notification: %s\n", program, error->message); g_error_free(error); |