From 3623814abc4df8435d2fc50697c6d7fc66f21088 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_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ospfd/ospf_packet.c') diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index c869d3d8..e50b7435 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -329,7 +329,7 @@ ospf_make_md5_digest (struct ospf_interface *oi, struct ospf_packet *op) void *ibuf; u_int32_t t; struct crypt_key *ck; - const char *auth_key; + const u_int8_t *auth_key; ibuf = STREAM_DATA (op->s); ospfh = (struct ospf_header *) ibuf; @@ -345,7 +345,7 @@ ospf_make_md5_digest (struct ospf_interface *oi, struct ospf_packet *op) /* Get MD5 Authentication key from auth_key list. */ if (list_isempty (OSPF_IF_PARAM (oi, auth_crypt))) - auth_key = ""; + auth_key = (const u_int8_t *) ""; else { ck = listgetdata (listtail(OSPF_IF_PARAM (oi, auth_crypt))); -- cgit v1.2.3