summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-29 15:15:46 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-29 15:15:46 +0000
commitba6aa901cfb3eba1873096eadee166a5804cad25 (patch)
tree574c32547f7e14d643fb7c9c4965b1e2de5ac5ff
parentaa66476eca65abcd7c7db7fb6a360b9307a2b3a1 (diff)
size_t has to be casted to u_long on printing.
From: Martti Kuparinen <martti.kuparinen@iki.fi>
-rw-r--r--sbin/isakmpd/pf_key_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c
index d13d3328e2b..94d9be5afcd 100644
--- a/sbin/isakmpd/pf_key_v2.c
+++ b/sbin/isakmpd/pf_key_v2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_key_v2.c,v 1.115 2002/08/23 18:01:33 ho Exp $ */
+/* $OpenBSD: pf_key_v2.c,v 1.116 2002/08/29 15:15:45 itojun Exp $ */
/* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */
/*
@@ -2040,7 +2040,7 @@ pf_key_v2_flow (struct sockaddr *laddr, struct sockaddr *lmask,
policy_buf = (u_int8_t *)calloc (1, len);
if (!policy_buf)
{
- log_error ("pf_key_v2_flow: calloc %lu failed", len);
+ log_error ("pf_key_v2_flow: calloc %lu failed", (unsigned long)len);
goto cleanup;
}