libreswan/libreswan-3.10-snprintf.patch
2014-09-09 12:58:42 -04:00

22 lines
801 B
Diff

diff -Naur libreswan-3.10-orig/programs/pluto/kernel.c libreswan-3.10/programs/pluto/kernel.c
--- libreswan-3.10-orig/programs/pluto/kernel.c 2014-09-01 17:44:22.000000000 -0400
+++ libreswan-3.10/programs/pluto/kernel.c 2014-09-08 09:10:29.173718430 -0400
@@ -441,7 +441,7 @@
"PLUTO_STACK='%s' "
"%s" /* optional metric */
"%s" /* optional mtu */
- "PLUTO_ADDTIME='%lu' "
+ "PLUTO_ADDTIME='%" PRIu64 "' "
"PLUTO_CONN_POLICY='%s' "
"PLUTO_CONN_ADDRFAMILY='ipv%d' "
"XAUTH_FAILED=%d "
@@ -479,7 +479,7 @@
kernel_ops->kern_name,
metric_str,
connmtu_str,
- st == NULL ? 0 : st->st_esp.add_time,
+ (u_int64_t)(st == NULL ? 0U : st->st_esp.add_time),
prettypolicy(c->policy),
(c->addr_family == AF_INET) ? 4 : 6,
(st && st->st_xauth_soft) ? 1 : 0,