diff options
author | bde <bde@FreeBSD.org> | 1999-08-29 10:28:10 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-08-29 10:28:10 +0000 |
commit | 8a602972cf4b820a7eff7810be01299186219efe (patch) | |
tree | 7a42b302d042483e83fccc183c6698cbfa32f31d /sys/netatm | |
parent | 615716acb7c3853d0331948df3559f9a8af9f078 (diff) | |
download | FreeBSD-src-8a602972cf4b820a7eff7810be01299186219efe.zip FreeBSD-src-8a602972cf4b820a7eff7810be01299186219efe.tar.gz |
Fixed printf format errors (don't assume that ntohl() returns u_long;
it returns u_int on i386's and in_addr_t (u_int32_t) on alphas).
Diffstat (limited to 'sys/netatm')
-rw-r--r-- | sys/netatm/spans/spans_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netatm/spans/spans_util.c b/sys/netatm/spans/spans_util.c index e174e16..bfbae5d 100644 --- a/sys/netatm/spans/spans_util.c +++ b/sys/netatm/spans/spans_util.c @@ -441,7 +441,7 @@ spans_addr_print(p) /* * Print and return the string */ - sprintf(strbuff, "%lx.%lx", ntohl(u1.w), ntohl(u2.w)); + sprintf(strbuff, "%lx.%lx", (u_long)ntohl(u1.w), (u_long)ntohl(u2.w)); return(strbuff); } |