diff options
author | paul <paul> | 2005-10-11 04:12:54 +0000 |
---|---|---|
committer | paul <paul> | 2005-10-11 04:12:54 +0000 |
commit | d11015bfc636fc2ebf90da79365c8b3e39f4c30c (patch) | |
tree | dbd0316e4c2c3f358d00680caccaa41b1b397324 /ospfd/ospf_api.c | |
parent | 7bbb59fc729bafc3751f213f09379ca68130e5f2 (diff) | |
download | quagga-d11015bfc636fc2ebf90da79365c8b3e39f4c30c.tar.bz2 quagga-d11015bfc636fc2ebf90da79365c8b3e39f4c30c.tar.xz |
2005-10-11 Paul Jakma <paul.jakma@sun.com>
* ospf_api.c: sign warnings.
* ospf_apiserver.c: sign warning and convert all the struct
in_addr initialisations so as not to make assumptions about
how this struct is organised, initialise the s_addr member
explicitely.
* ospf_packet.c: Add const qualifier to auth_key.
Diffstat (limited to 'ospfd/ospf_api.c')
-rw-r--r-- | ospfd/ospf_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_api.c b/ospfd/ospf_api.c index 03b31861..d9960d4a 100644 --- a/ospfd/ospf_api.c +++ b/ospfd/ospf_api.c @@ -350,12 +350,12 @@ msg_read (int fd) { struct msg *msg; struct apimsghdr hdr; - char buf[OSPF_API_MAX_MSG_SIZE]; + u_char buf[OSPF_API_MAX_MSG_SIZE]; int bodylen; int rlen; /* Read message header */ - rlen = readn (fd, (char *) &hdr, sizeof (struct apimsghdr)); + rlen = readn (fd, (u_char *) &hdr, sizeof (struct apimsghdr)); if (rlen < 0) { |