diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-06-14 20:55:30 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-06-14 20:55:30 +0000 |
commit | fa309e933ec0ebfd1ab5a946fc3caea346c779ac (patch) | |
tree | bd7c4db6424f96cb633074f700c3911a3ff66377 /lib/libradius | |
parent | 78e2eb4e877a0efe310219d7d116e7bcea55451e (diff) | |
download | FreeBSD-src-fa309e933ec0ebfd1ab5a946fc3caea346c779ac.zip FreeBSD-src-fa309e933ec0ebfd1ab5a946fc3caea346c779ac.tar.gz |
Use %zu to print values with type size_t.
Diffstat (limited to 'lib/libradius')
-rw-r--r-- | lib/libradius/radlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libradius/radlib.c b/lib/libradius/radlib.c index 3460db5..6060885 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; } |