summaryrefslogtreecommitdiffstats
path: root/ripd/ripd.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-16 14:29:17 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-16 14:29:17 +0100
commita20526cc30d68ca5c4c7951238faafa8969a31c1 (patch)
treec9a0d8ee5e16ee5f42704c9c9f3122f407f13122 /ripd/ripd.c
parentd6f1bd7b60fc94488dc6a0493a6ec17346a03b2d (diff)
downloadquagga-a20526cc30d68ca5c4c7951238faafa8969a31c1.tar.bz2
quagga-a20526cc30d68ca5c4c7951238faafa8969a31c1.tar.xz
Removing compiler warnings.
Removed nearly 100 compiler warnings in the various routing daemons which now clean compile. Removed one warning in vty.c, which was obscured by the other warnings. SO... this commit corrects the previous one.
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r--ripd/ripd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 5a6dbc8c..6a592b0a 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -61,6 +61,11 @@ long rip_global_route_changes = 0;
/* RIP queries. */
long rip_global_queries = 0;
+
+/* Strings... */
+union rip_miyagi_string rip_enabled_string = { .cp = "enabled" } ;
+union rip_miyagi_string rip_static_string = { .cp = "static" } ;
+
/* Prototypes. */
static void rip_event (enum rip_event, int);
@@ -1110,6 +1115,7 @@ rip_response_process (struct rip_packet *packet, int size,
/* We don't know yet. */
subnetted = -1;
+ ifaddr.prefixlen = 0 ; /* eliminate a compiler warning */
/* The Response must be ignored if it is not from the RIP
port. (RFC2453 - Sec. 3.9.2)*/
@@ -2932,7 +2938,7 @@ DEFUN (rip_route,
return CMD_WARNING;
}
- node->info = (char *)"static";
+ node->info = rip_static_string.p ;
rip_redistribute_add (ZEBRA_ROUTE_RIP, RIP_ROUTE_STATIC, &p, 0, NULL, 0, 0);