aboutsummaryrefslogtreecommitdiff
path: root/lib/libradius
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2004-06-14 20:55:30 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2004-06-14 20:55:30 +0000
commit067a9d4cc7d55bffb178773971ee802ad2e7a138 (patch)
treebd7c4db6424f96cb633074f700c3911a3ff66377 /lib/libradius
parent97b88fbf30957aebb68d54adf1d2c57013ba8cfb (diff)
downloadsrc-067a9d4cc7d55bffb178773971ee802ad2e7a138.tar.gz
src-067a9d4cc7d55bffb178773971ee802ad2e7a138.zip
Use %zu to print values with type size_t.
Notes
Notes: svn path=/head/; revision=130490
Diffstat (limited to 'lib/libradius')
-rw-r--r--lib/libradius/radlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libradius/radlib.c b/lib/libradius/radlib.c
index 3460db5604b3..6060885f0ad3 100644
--- a/lib/libradius/radlib.c
+++ b/lib/libradius/radlib.c
@@ -1047,7 +1047,7 @@ rad_put_vendor_attr(struct rad_handle *h, int vendor, int type,
}
if ((attr = malloc(len + 6)) == NULL) {
- generr(h, "malloc failure (%d bytes)", len + 6);
+ generr(h, "malloc failure (%zu bytes)", len + 6);
return -1;
}
@@ -1207,13 +1207,13 @@ rad_demangle_mppe_key(struct rad_handle *h, const void *mangled,
*/
*len = *P;
if (*len > mlen - 1) {
- generr(h, "Mangled data seems to be garbage %d %d",
+ generr(h, "Mangled data seems to be garbage %zu %zu",
*len, mlen-1);
return NULL;
}
if (*len > MPPE_KEY_LEN * 2) {
- generr(h, "Key to long (%d) for me max. %d",
+ generr(h, "Key to long (%zu) for me max. %d",
*len, MPPE_KEY_LEN * 2);
return NULL;
}