Throw error message when using wrong logging parameter
authorHenning Rogge <rogge@fgan.de>
Wed, 9 Sep 2009 11:48:47 +0000 (13:48 +0200)
committerHenning Rogge <rogge@fgan.de>
Wed, 9 Sep 2009 11:48:47 +0000 (13:48 +0200)
src/olsr_cfg.c

index 4a9d2eb..7e8368b 100644 (file)
@@ -801,7 +801,7 @@ parse_cfg_log(char *argstr, struct olsr_config *rcfg, char *rmsg, enum log_sever
 
     if (i == LOG_SOURCE_COUNT) {
       sprintf(rmsg, "Error, unknown logging source: %s\n", p);
-      return CFG_EXIT;
+      return CFG_ERROR;
     }
 
     /* handle "all" keyword */