summaryrefslogtreecommitdiffstats
path: root/zebra/main.c
diff options
context:
space:
mode:
authorpaul <paul>2006-01-19 20:16:55 +0000
committerpaul <paul>2006-01-19 20:16:55 +0000
commite8e1946edf6ba87ef53832cdceccc39d7f0c3f26 (patch)
treefcdaf92bf4129a8a58825bd21ae841a6b3b2bda8 /zebra/main.c
parent779adb0147cfff1a831b08853976342ad2110fcd (diff)
downloadquagga-e8e1946edf6ba87ef53832cdceccc39d7f0c3f26.tar.bz2
quagga-e8e1946edf6ba87ef53832cdceccc39d7f0c3f26.tar.xz
[compiler] miscellaneous trivial compiler warning fixes
2006-01-19 Paul Jakma <paul.jakma@sun.com> * (general) various miscellaneous compiler warning fixes. Remove redundant break statements from switch clauses which return. return from main, not exit, cause it annoys SOS. Remove stray semi-colons which cause empty-statement warnings. * zebra/main.c: (sighup) remove private declaration of external function.
Diffstat (limited to 'zebra/main.c')
-rw-r--r--zebra/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/main.c b/zebra/main.c
index 67108c4e..dbe1b537 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -163,9 +163,6 @@ sighup (void)
static void
sigint (void)
{
- /* Decrared in rib.c */
- void rib_close ();
-
zlog_notice ("Terminating on signal");
if (!retain_mode)
@@ -378,5 +375,5 @@ main (int argc, char **argv)
thread_call (&thread);
/* Not reached... */
- exit (0);
+ return 0;
}