diff options
author | bde <bde@FreeBSD.org> | 1998-06-30 18:06:23 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-30 18:06:23 +0000 |
commit | 8c3de9bd74c007551dc31617da0d7456520b2ed7 (patch) | |
tree | de24336fab952257a79e44d87cff168e1424a47b | |
parent | 8925ea450ff1e6f1ff45435a7dd6fc4e3b1128ca (diff) | |
download | FreeBSD-src-8c3de9bd74c007551dc31617da0d7456520b2ed7.zip FreeBSD-src-8c3de9bd74c007551dc31617da0d7456520b2ed7.tar.gz |
Fixed printf format errors.
-rw-r--r-- | contrib/opie/libopie/newseed.c | 2 | ||||
-rw-r--r-- | lib/libipx/ipx_ntoa.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/opie/libopie/newseed.c b/contrib/opie/libopie/newseed.c index 5073850..0d290ef 100644 --- a/contrib/opie/libopie/newseed.c +++ b/contrib/opie/libopie/newseed.c @@ -70,7 +70,7 @@ int opienewseed FUNCTION((seed), char *seed) j = 1; } - sprintf(seed, "%s%04d", buf, j); + sprintf(seed, "%s%04ld", buf, j); return 0; } } diff --git a/lib/libipx/ipx_ntoa.c b/lib/libipx/ipx_ntoa.c index 21e60a1..1bf1c57 100644 --- a/lib/libipx/ipx_ntoa.c +++ b/lib/libipx/ipx_ntoa.c @@ -53,7 +53,7 @@ ipx_ntoa(addr) static char *spectHex(); net.net_e = addr.x_net; - sprintf(obuf, "%lx", ntohl(net.long_e)); + sprintf(obuf, "%lx", (u_long)ntohl(net.long_e)); cp = spectHex(obuf); cp2 = cp + 1; while (*up==0 && up < uplim) up++; |