From 02ff83c52592427623db0d8367ca9b3395fa321f Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 11 Jun 2004 11:27:03 +0000 Subject: 2004-06-11 Sowmini Varadhan * filter.c: (access_list_remark_cmd) buffer_putstr doesnt need cast to u_char. (ipv6_access_list_remark_cmd) ditto. if.c: ditto * network.c: (readn/writen) pointer arg should be type u_char. * plist.c: needs to include stream.h, not declare stream functions internally. (various) Add static qualifier to internal functions. (prefix_list_type_str) extraneous breaks in switch statement. (ip_prefix_list_description_cmd) buffer_putstr doesnt need cast * stream.h: depends on plist.h and export stream_put_prefix * vty.c: (vty_) should use unsigned char, telnet options are 0 -> 255. * zclient.c: various u_char<->char type cleanups. * zebra.h: Having to define CMSG_* can apply to more than just BSDI_NRL. * ripd.c: (rip_distribute_update_all) distribute list hook function pointer prototype requires struct prefix_list * arg. (rip_distribute_update_all_wrapper) update to pass required arg, NULL. --- lib/vty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/vty.c') diff --git a/lib/vty.c b/lib/vty.c index 831660d9..4b23487d 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -221,7 +221,7 @@ vty_prompt (struct vty *vty) void vty_will_echo (struct vty *vty) { - char cmd[] = { IAC, WILL, TELOPT_ECHO, '\0' }; + unsigned char cmd[] = { IAC, WILL, TELOPT_ECHO, '\0' }; vty_out (vty, "%s", cmd); } @@ -229,7 +229,7 @@ vty_will_echo (struct vty *vty) static void vty_will_suppress_go_ahead (struct vty *vty) { - char cmd[] = { IAC, WILL, TELOPT_SGA, '\0' }; + unsigned char cmd[] = { IAC, WILL, TELOPT_SGA, '\0' }; vty_out (vty, "%s", cmd); } @@ -237,7 +237,7 @@ vty_will_suppress_go_ahead (struct vty *vty) static void vty_dont_linemode (struct vty *vty) { - char cmd[] = { IAC, DONT, TELOPT_LINEMODE, '\0' }; + unsigned char cmd[] = { IAC, DONT, TELOPT_LINEMODE, '\0' }; vty_out (vty, "%s", cmd); } @@ -245,7 +245,7 @@ vty_dont_linemode (struct vty *vty) static void vty_do_window_size (struct vty *vty) { - char cmd[] = { IAC, DO, TELOPT_NAWS, '\0' }; + unsigned char cmd[] = { IAC, DO, TELOPT_NAWS, '\0' }; vty_out (vty, "%s", cmd); } @@ -254,7 +254,7 @@ vty_do_window_size (struct vty *vty) static void vty_dont_lflow_ahead (struct vty *vty) { - char cmd[] = { IAC, DONT, TELOPT_LFLOW, '\0' }; + unsigned char cmd[] = { IAC, DONT, TELOPT_LFLOW, '\0' }; vty_out (vty, "%s", cmd); } #endif /* 0 */ -- cgit v1.2.1