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