summaryrefslogtreecommitdiffstats
path: root/zebra/rtadv.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-28 09:50:36 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-28 09:50:36 -0700
commit82e1d7bc0324c5b3afed465c0746d37f7fc1b13b (patch)
tree4d444851c1900201108031862f510be9e13a9c86 /zebra/rtadv.c
parent11a1fd54a7246ae4afc634445f3bde06cdc52892 (diff)
downloadquagga-82e1d7bc0324c5b3afed465c0746d37f7fc1b13b.tar.bz2
quagga-82e1d7bc0324c5b3afed465c0746d37f7fc1b13b.tar.xz
Fix compiler warnings
To eliminate compiler warnings * comment out unused code * fix printf formats * remove always true expression * initialize variables
Diffstat (limited to 'zebra/rtadv.c')
-rw-r--r--zebra/rtadv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c
index 4bdb83d5..0097e28f 100644
--- a/zebra/rtadv.c
+++ b/zebra/rtadv.c
@@ -90,11 +90,13 @@ rtadv_new (void)
return new;
}
+#if 0
static void
rtadv_free (struct rtadv *rtadv)
{
XFREE (MTYPE_TMP, rtadv);
}
+#endif
static int
rtadv_recv_packet (int sock, u_char *buf, int buflen,
@@ -451,7 +453,7 @@ rtadv_read (struct thread *thread)
int len;
u_char buf[RTADV_MSG_SIZE];
struct sockaddr_in6 from;
- unsigned int ifindex;
+ unsigned int ifindex = 0;
int hoplimit = -1;
sock = THREAD_FD (thread);