diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-25 04:29:26 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-25 04:29:26 +0000 |
commit | ac62ea46fc515e25874659c70e765453cdd4b672 (patch) | |
tree | 50f1eacd42d75e067b1a4554b4ba8a880f09a00c /lib/libatm/atm_addr.c | |
parent | f74cd6a71b113eae1cf5d3760c7a6260d3e0de41 (diff) | |
download | FreeBSD-src-ac62ea46fc515e25874659c70e765453cdd4b672.zip FreeBSD-src-ac62ea46fc515e25874659c70e765453cdd4b672.tar.gz |
Fix warnings.
Diffstat (limited to 'lib/libatm/atm_addr.c')
-rw-r--r-- | lib/libatm/atm_addr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libatm/atm_addr.c b/lib/libatm/atm_addr.c index f92c4b13..ef860a6 100644 --- a/lib/libatm/atm_addr.c +++ b/lib/libatm/atm_addr.c @@ -183,6 +183,10 @@ get_hex_atm_addr(in, out, len) val += c_value; out[out_len] = (u_char) val; out_len++; + if (out_len > len) + (void)fprintf(stderr, "%s() out_len > len (%d > %d)\n", + __func__, out_len, len); + break; case 4: @@ -305,7 +309,8 @@ format_atm_addr(addr) u2.c[3] = atm_spans->aas_addr[7]; if (!(u1.w == 0 && u2.w == 0)) - sprintf(str, "0x%08lx.%08lx", ntohl(u1.w), ntohl(u2.w)); + sprintf(str, "0x%08lx.%08lx", + (u_long)ntohl(u1.w), (u_long)ntohl(u2.w)); break; case T_ATM_PVC_ADDR: |