changed type definition of level from char* to int

This commit is contained in:
Andreas Steffen 2009-01-13 06:36:31 +00:00
parent 37fbc74121
commit 04bcdc715d

View 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);