Merge branch 'collectd-5.7' into collectd-5.8
[collectd.git] / src / notify_desktop.c
index 4840441..e391cf2 100644 (file)
@@ -93,12 +93,12 @@ static int c_notify(const notification_t *n,
     timeout = fail_timeout;
   }
 
-  ssnprintf(summary, sizeof(summary), "collectd %s notification",
-            (NOTIF_FAILURE == n->severity)
-                ? "FAILURE"
-                : (NOTIF_WARNING == n->severity)
-                      ? "WARNING"
-                      : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN");
+  snprintf(summary, sizeof(summary), "collectd %s notification",
+           (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)
@@ -166,5 +166,3 @@ void module_register(void) {
   plugin_register_init("notify_desktop", c_notify_init);
   return;
 } /* module_register */
-
-/* vim: set sw=4 ts=4 tw=78 noexpandtab : */