projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
table plugin: modernize code a bit
[collectd.git]
/
src
/
notify_desktop.c
diff --git
a/src/notify_desktop.c
b/src/notify_desktop.c
index
255230b
..
e391cf2
100644
(file)
--- a/
src/notify_desktop.c
+++ b/
src/notify_desktop.c
@@
-94,11
+94,11
@@
static int c_notify(const notification_t *n,
}
snprintf(summary, sizeof(summary), "collectd %s notification",
}
snprintf(summary, sizeof(summary), "collectd %s notification",
-
(NOTIF_FAILURE == n->severity)
-
? "FAILURE"
-
: (NOTIF_WARNING == n->severity)
-
? "WARNING"
-
: (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN");
+ (NOTIF_FAILURE == n->severity)
+ ? "FAILURE"
+ : (NOTIF_WARNING == n->severity)
+ ? "WARNING"
+ : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN");
notification = notify_notification_new(summary, n->message, NULL
#if NOTIFY_CHECK_VERSION(0, 7, 0)
notification = notify_notification_new(summary, n->message, NULL
#if NOTIFY_CHECK_VERSION(0, 7, 0)