mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-09 00:00:53 -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";
|
arg[argc++] = "--use-syslog";
|
||||||
}
|
}
|
||||||
|
|
||||||
{ /* parse debug string */
|
/* parse debug string */
|
||||||
char *pos, *level, *buf_pos, type[4];
|
{
|
||||||
|
int level;
|
||||||
|
char *pos, *buf_pos, type[4];
|
||||||
|
|
||||||
pos = cfg->setup.charondebug;
|
pos = cfg->setup.charondebug;
|
||||||
buf_pos = buffer;
|
buf_pos = buffer;
|
||||||
|
|
||||||
while (pos && sscanf(pos, "%4s %d,", type, &level) == 2)
|
while (pos && sscanf(pos, "%4s %d,", type, &level) == 2)
|
||||||
{
|
{
|
||||||
snprintf(buf_pos, buffer + sizeof(buffer) - buf_pos, "--debug-%s", type);
|
snprintf(buf_pos, buffer + sizeof(buffer) - buf_pos, "--debug-%s", type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user