From ba6aa901cfb3eba1873096eadee166a5804cad25 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Thu, 29 Aug 2002 15:15:46 +0000 Subject: size_t has to be casted to u_long on printing. From: Martti Kuparinen --- sbin/isakmpd/pf_key_v2.c | 4 ++-- 1 file 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; } -- cgit v1.2.3