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_packet.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_packet.c')
-rw-r--r-- | ospfd/ospf_packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
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))); |