cpu, interface plugin: Fix compilation issues under Solaris.
[collectd.git] / src / syslog.c
index bcf873e..08dadcb 100644 (file)
@@ -51,7 +51,7 @@ static int sl_config (const char *key, const char *value)
                        log_level = LOG_NOTICE;
                else if (strcasecmp (value, "info") == 0)
                        log_level = LOG_INFO;
-#if COLLECTD_DEBUG
+#if COLLECT_DEBUG
                else if (strcasecmp (value, "debug") == 0)
                        log_level = LOG_DEBUG;
 #endif
@@ -71,12 +71,12 @@ static int sl_init (void)
        return (0);
 }
 
-static void sl_log (int sevetiry, const char *msg)
+static void sl_log (int severity, const char *msg)
 {
-       if (sevetiry > log_level)
+       if (severity > log_level)
                return;
 
-       syslog (sevetiry, "%s", msg);
+       syslog (severity, "%s", msg);
 } /* void sl_log */
 
 static int sl_shutdown (void)
@@ -92,6 +92,4 @@ void module_register (void)
        plugin_register_init ("syslog", sl_init);
        plugin_register_log ("syslog", sl_log);
        plugin_register_shutdown ("syslog", sl_shutdown);
-
-       return;
 } /* void module_register(void) */