aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-01-18 10:31:45 +0100
committerMartin Willi <martin@revosec.ch>2012-01-18 10:31:45 +0100
commit498d172c333c7b47e3151362ce19763f6e3ad679 (patch)
treef73d5764667b6fa0e35e304da27cfd89ec6c345a /src
parentd68b8dfec490c553c6a1fe3907d8bb590a1ba165 (diff)
downloadstrongswan-498d172c333c7b47e3151362ce19763f6e3ad679.tar.bz2
strongswan-498d172c333c7b47e3151362ce19763f6e3ad679.tar.xz
Use correct time_t variables to store ARG_TIME options
Diffstat (limited to 'src')
-rw-r--r--src/starter/confread.h4
-rw-r--r--src/starter/invokepluto.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/starter/confread.h b/src/starter/confread.h
index 988b8ed48..9cb919ce5 100644
--- a/src/starter/confread.h
+++ b/src/starter/confread.h
@@ -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;
diff --git a/src/starter/invokepluto.c b/src/starter/invokepluto.c
index 11c13abe2..70c0692ea 100644
--- a/src/starter/invokepluto.c
+++ b/src/starter/invokepluto.c
@@ -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)