Use correct time_t variables to store ARG_TIME options

This commit is contained in:
Martin Willi 2012-01-18 10:31:45 +01:00
parent d68b8dfec4
commit 498d172c33
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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)