From d11015bfc636fc2ebf90da79365c8b3e39f4c30c Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 11 Oct 2005 04:12:54 +0000 Subject: 2005-10-11 Paul Jakma * 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. --- ospfd/ospf_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ospfd/ospf_api.c') 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) { -- cgit v1.2.3