aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty/vty.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-03-11 10:45:38 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-11-14 15:22:22 +0100
commit78a870ed0fc7ec03d0eb24241d9772470e4a78ae (patch)
tree9a2f7683c5af332d1e3c3865a4073efb65a82747 /src/vty/vty.c
parent7b74dda31bc05a7210bbbcb382b78d6f9cde5b15 (diff)
remove references to u_long type, use 'unsigned long' instead
.. Nuttx doesn't know u_long
Diffstat (limited to 'src/vty/vty.c')
-rw-r--r--src/vty/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index f34e5291..230d74c0 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -623,11 +623,11 @@ vty_telnet_option (struct vty *vty, unsigned char *buf, int nbytes)
if (vty->sb_len != TELNET_NAWS_SB_LEN)
vty_out(vty,"RFC 1073 violation detected: telnet NAWS option "
"should send %d characters, but we received %lu",
- TELNET_NAWS_SB_LEN, (u_long)vty->sb_len);
+ TELNET_NAWS_SB_LEN, (unsigned long)vty->sb_len);
else if (sizeof(vty->sb_buf) < TELNET_NAWS_SB_LEN)
vty_out(vty, "Bug detected: sizeof(vty->sb_buf) %lu < %d, "
"too small to handle the telnet NAWS option",
- (u_long)sizeof(vty->sb_buf), TELNET_NAWS_SB_LEN);
+ (unsigned long)sizeof(vty->sb_buf), TELNET_NAWS_SB_LEN);
else
{
vty->width = ((vty->sb_buf[1] << 8)|vty->sb_buf[2]);