summaryrefslogtreecommitdiff
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-12-08 01:09:50 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-12-08 01:09:50 +0000
commit41b36e9013111a6da812ca000e3b978282bd27a9 (patch)
tree11805d66de677613be7fe5e31626cfbbbbec78a6 /isisd/isis_pdu.c
parent3c0755dc9772deccff2ba6e9dc0511a9af2b9d1b (diff)
[isisd] Fix compiler warnings and allow v4-only compilation
2006-12-08 Hannes Gredler <hannes@gredler.at> * isis_adjacency.c: (isis_new_adj) Allow NULL snpa argument. * isis_pdu.c: (various) Update calls to isis_new_adj() to pass NULL and use default. * (general) Add forward declarations where required. Fix up const char *'s. Allow V4-only compilation.
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index 2dc82156..6fcc5ed5 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -335,7 +335,7 @@ process_p2p_hello (struct isis_circuit *circuit)
adj = circuit->u.p2p.neighbor;
if (!adj)
{
- adj = isis_new_adj (hdr->source_id, (u_char *) " ", 0, circuit);
+ adj = isis_new_adj (hdr->source_id, NULL, 0, circuit);
if (adj == NULL)
return ISIS_ERROR;
circuit->u.p2p.neighbor = adj;
@@ -1596,7 +1596,7 @@ process_is_hello (struct isis_circuit *circuit)
if (!adj)
{
/* 8.2.2 */
- adj = isis_new_adj (sysid, (u_char *) " ", 0, circuit);
+ adj = isis_new_adj (sysid, NULL, 0, circuit);
if (adj == NULL)
return ISIS_ERROR;
@@ -1612,7 +1612,7 @@ process_is_hello (struct isis_circuit *circuit)
/* 8.2.2 a) 2) delete the adj */
XFREE (MTYPE_ISIS_ADJACENCY, adj);
/* 8.2.2 a) 3) create a new adj */
- adj = isis_new_adj (sysid, (u_char *) " ", 0, circuit);
+ adj = isis_new_adj (sysid, NULL, 0, circuit);
if (adj == NULL)
return ISIS_ERROR;