diff options
author | paul <paul> | 2005-10-11 04:12:54 +0000 |
---|---|---|
committer | paul <paul> | 2005-10-11 04:12:54 +0000 |
commit | 3623814abc4df8435d2fc50697c6d7fc66f21088 (patch) | |
tree | 520bef46117e4c81956d4c1aeb23afcc339db832 /ospfd/ospf_api.c | |
parent | d751f00299e0cd9be8f0e702288efe48ac1ddbca (diff) |
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) { |