aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/klips.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-11-11 18:37:19 +0000
committerMartin Willi <martin@strongswan.org>2008-11-11 18:37:19 +0000
commit479f295049956333253310025d3776279e932b46 (patch)
treee0d6113484a5e191c14a8649f9634cfa15087464 /src/starter/klips.c
parent3d2dbebd703fe29c0981f61102094ffe2a4a2101 (diff)
downloadstrongswan-479f295049956333253310025d3776279e932b46.tar.bz2
strongswan-479f295049956333253310025d3776279e932b46.tar.xz
fixed compiler warnings issued by:
gcc 4.3 curl.h gcc type-checking glibc with enabled FORTIFY_SOURCE checking
Diffstat (limited to 'src/starter/klips.c')
-rw-r--r--src/starter/klips.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/starter/klips.c b/src/starter/klips.c
index bed1674cc..7d8935636 100644
--- a/src/starter/klips.c
+++ b/src/starter/klips.c
@@ -36,7 +36,7 @@ starter_klips_init(void)
/* ipsec module makes the pf_key proc interface visible */
if (stat(PROC_MODULES, &stb) == 0)
{
- system("modprobe -qv ipsec");
+ ignore_result(system("modprobe -qv ipsec"));
}
/* now test again */
@@ -50,9 +50,9 @@ starter_klips_init(void)
}
/* load crypto algorithm modules */
- system("modprobe -qv ipsec_aes");
- system("modprobe -qv ipsec_blowfish");
- system("modprobe -qv ipsec_sha2");
+ ignore_result(system("modprobe -qv ipsec_aes"));
+ ignore_result(system("modprobe -qv ipsec_blowfish"));
+ ignore_result(system("modprobe -qv ipsec_sha2"));
DBG(DBG_CONTROL,
DBG_log("Found KLIPS IPsec stack")
@@ -64,19 +64,19 @@ starter_klips_init(void)
void
starter_klips_cleanup(void)
{
- if (system("type eroute > /dev/null 2>&1") == 0)
- {
- system("spi --clear");
- system("eroute --clear");
- }
+ if (system("type eroute > /dev/null 2>&1") == 0)
+ {
+ ignore_result(system("spi --clear"));
+ ignore_result(system("eroute --clear"));
+ }
else if (system("type setkey > /dev/null 2>&1") == 0)
{
- system("setkey -F");
- system("setkey -FP");
+ ignore_result(system("setkey -F"));
+ ignore_result(system("setkey -FP"));
}
else
{
- plog("WARNING: cannot flush IPsec state/policy database");
+ plog("WARNING: cannot flush IPsec state/policy database");
}
}