diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2004-07-05 17:33:36 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2004-07-05 17:33:36 +0000 |
commit | 4335c644e6bae68c48074b1e650afdcb454fdaf9 (patch) | |
tree | faa78b7a347ef8f38b8f7b51c22cdebb65f43b37 /sbin/isakmpd | |
parent | 83c0d3e9f0bac5a6b2724157891be739879d20d5 (diff) |
%lu and cast to unsigned long to print a size_t; ok ho
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/ike_phase_1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/isakmpd/ike_phase_1.c b/sbin/isakmpd/ike_phase_1.c index 96d3e656d87..3f84e7151a3 100644 --- a/sbin/isakmpd/ike_phase_1.c +++ b/sbin/isakmpd/ike_phase_1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike_phase_1.c,v 1.53 2004/06/23 00:56:45 ho Exp $ */ +/* $OpenBSD: ike_phase_1.c,v 1.54 2004/07/05 17:33:35 pvalchev Exp $ */ /* $EOM: ike_phase_1.c,v 1.31 2000/12/11 23:47:56 niklas Exp $ */ /* @@ -97,15 +97,15 @@ ike_phase_1_initiator_send_SA(struct message *msg) transform = calloc(conf->cnt, sizeof *transform); if (!transform) { - log_error("ike_phase_1_initiator_send_SA: calloc (%d, %lu) " - "failed", conf->cnt, (unsigned long) sizeof *transform); + log_error("ike_phase_1_initiator_send_SA: calloc (%lu, %lu) " + "failed", (u_long)conf->cnt, (u_long) sizeof *transform); goto bail_out; } transform_len = calloc(conf->cnt, sizeof *transform_len); if (!transform_len) { - log_error("ike_phase_1_initiator_send_SA: calloc (%d, %lu) " - "failed", conf->cnt, - (unsigned long) sizeof *transform_len); + log_error("ike_phase_1_initiator_send_SA: calloc (%lu, %lu) " + "failed", (u_long)conf->cnt, + (u_long) sizeof *transform_len); goto bail_out; } for (xf = TAILQ_FIRST(&conf->fields), i = 0; i < conf->cnt; |