diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-01 07:44:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-01 07:44:23 +0000 |
commit | f513dc36f4e8026dcc54d6eca9240142830b7670 (patch) | |
tree | a7695df419f6006fc1e66fb26caedd25d34087d7 /sbin/isakmpd/key.c | |
parent | 715efc5fb1f53da06a4bbf265ecf4758c59b5f52 (diff) |
size_t must be cast to (unsigned long) and printed using %lu
Diffstat (limited to 'sbin/isakmpd/key.c')
-rw-r--r-- | sbin/isakmpd/key.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/isakmpd/key.c b/sbin/isakmpd/key.c index b542b13a7fb..3e00f2142d1 100644 --- a/sbin/isakmpd/key.c +++ b/sbin/isakmpd/key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.9 2002/03/06 13:55:12 ho Exp $ */ +/* $OpenBSD: key.c,v 1.10 2002/06/01 07:44:21 deraadt Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -69,7 +69,8 @@ key_serialize (int type, int private, void *key, u_int8_t **data, size_t *datale *data = p = malloc (*datalen); if (!p) { - log_error("key_serialize: malloc (%d) failed", *datalen); + log_error("key_serialize: malloc (%lu) failed", + (unsigned long)*datalen); return; } *datalen = LC (i2d_RSAPublicKey, ((RSA *)key, &p)); @@ -80,7 +81,8 @@ key_serialize (int type, int private, void *key, u_int8_t **data, size_t *datale *data = p = malloc (*datalen); if (!p) { - log_error("key_serialize: malloc (%d) failed", *datalen); + log_error("key_serialize: malloc (%lu) failed", + (unsigned long)*datalen); return; } *datalen = LC (i2d_RSAPrivateKey, ((RSA *)key, &p)); |