mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
changed type definition of level from char* to int
This commit is contained in:
parent
37fbc74121
commit
04bcdc715d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user