Use correct time_t variables to store ARG_TIME options
This commit is contained in:
parent
d68b8dfec4
commit
498d172c33
|
@ -198,12 +198,12 @@ struct starter_config {
|
|||
char *plutostderrlog;
|
||||
bool uniqueids;
|
||||
u_int overridemtu;
|
||||
u_int crlcheckinterval;
|
||||
time_t crlcheckinterval;
|
||||
bool cachecrls;
|
||||
strict_t strictcrlpolicy;
|
||||
bool nocrsend;
|
||||
bool nat_traversal;
|
||||
u_int keep_alive;
|
||||
time_t keep_alive;
|
||||
u_int force_keepalive;
|
||||
char *virtual_private;
|
||||
char *pkcs11module;
|
||||
|
|
|
@ -184,7 +184,7 @@ starter_start_pluto (starter_config_t *cfg, bool no_fork, bool attach_gdb)
|
|||
static char buf1[15];
|
||||
|
||||
arg[argc++] = "--crlcheckinterval";
|
||||
snprintf(buf1, sizeof(buf1), "%u", cfg->setup.crlcheckinterval);
|
||||
snprintf(buf1, sizeof(buf1), "%d", (int)cfg->setup.crlcheckinterval);
|
||||
arg[argc++] = buf1;
|
||||
}
|
||||
if (cfg->setup.cachecrls)
|
||||
|
@ -212,7 +212,7 @@ starter_start_pluto (starter_config_t *cfg, bool no_fork, bool attach_gdb)
|
|||
static char buf2[15];
|
||||
|
||||
arg[argc++] = "--keep_alive";
|
||||
snprintf(buf2, sizeof(buf2), "%u", cfg->setup.keep_alive);
|
||||
snprintf(buf2, sizeof(buf2), "%d", (int)cfg->setup.keep_alive);
|
||||
arg[argc++] = buf2;
|
||||
}
|
||||
if (cfg->setup.virtual_private)
|
||||
|
|
Loading…
Reference in New Issue