summaryrefslogtreecommitdiffstats
path: root/lib/network.c
diff options
context:
space:
mode:
authorpaul <paul>2004-06-11 13:27:03 +0200
committerpaul <paul>2004-06-11 13:27:03 +0200
commit02ff83c52592427623db0d8367ca9b3395fa321f (patch)
tree0aa278809140486f55012a98616106fc995d91e6 /lib/network.c
parent2004-06-09 Paul Jakma <paul@dishone.st> (diff)
downloadfrr-02ff83c52592427623db0d8367ca9b3395fa321f.tar.xz
frr-02ff83c52592427623db0d8367ca9b3395fa321f.zip
2004-06-11 Sowmini Varadhan <sowmini.varadhan@sun.com>
* 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_<telnet option build functions>) 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.
Diffstat (limited to 'lib/network.c')
-rw-r--r--lib/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network.c b/lib/network.c
index b68761bcc..d105db48d 100644
--- a/lib/network.c
+++ b/lib/network.c
@@ -24,7 +24,7 @@
/* Read nbytes from fd and store into ptr. */
int
-readn (int fd, char *ptr, int nbytes)
+readn (int fd, u_char *ptr, int nbytes)
{
int nleft;
int nread;
@@ -50,7 +50,7 @@ readn (int fd, char *ptr, int nbytes)
/* Write nbytes from ptr to fd. */
int
-writen(int fd, char *ptr, int nbytes)
+writen(int fd, u_char *ptr, int nbytes)
{
int nleft;
int nwritten;