changed type definition of level from char* to int
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 Jan 2009 06:36:31 +0000 (06:36 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 Jan 2009 06:36:31 +0000 (06:36 -0000)
src/starter/invokecharon.c

index 06e04ed..16a7f2a 100644 (file)
@@ -127,10 +127,14 @@ starter_start_charon (starter_config_t *cfg, bool no_fork)
        arg[argc++] = "--use-syslog";
     }
 
-    {   /* parse debug string */
-       char *pos, *level, *buf_pos, type[4];
+    /* parse debug string */
+    {
+       int level;
+       char *pos, *buf_pos, type[4];
+
        pos = cfg->setup.charondebug;
        buf_pos = buffer;
+
        while (pos && sscanf(pos, "%4s %d,", type, &level) == 2)
        {
            snprintf(buf_pos, buffer + sizeof(buffer) - buf_pos, "--debug-%s", type);