diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-30 13:18:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-30 13:18:40 +0000 |
commit | 48b1e29a7dc74c6cb1d3e33103b8c09e63c10015 (patch) | |
tree | c580b022418af39de9ff70c2ad2c578014f94a15 /cpukit/libnetworking/libc | |
parent | 2006-08-29 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-48b1e29a7dc74c6cb1d3e33103b8c09e63c10015.tar.bz2 |
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/utsname.c, libnetworking/libc/res_debug.c,
libnetworking/net/if_media.h, libnetworking/rtems/rtems_mii_ioctl.c,
librpc/src/rpc/svc_simple.c: Remove printf format warnings.
Diffstat (limited to 'cpukit/libnetworking/libc')
-rw-r--r-- | cpukit/libnetworking/libc/res_debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libnetworking/libc/res_debug.c b/cpukit/libnetworking/libc/res_debug.c index 19fb9180c8..8d41fa818d 100644 --- a/cpukit/libnetworking/libc/res_debug.c +++ b/cpukit/libnetworking/libc/res_debug.c @@ -98,6 +98,8 @@ static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$Id$"; #endif /* LIBC_SCCS and not lint */ +#include <inttypes.h> + #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> @@ -532,7 +534,7 @@ p_time(u_int32_t value) { static char nbuf[40]; if (ns_format_ttl(value, nbuf, sizeof nbuf) < 0) - sprintf(nbuf, "%u", value); + sprintf(nbuf, "%" PRIu32, value); return (nbuf); } |