From e8e1946edf6ba87ef53832cdceccc39d7f0c3f26 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 19 Jan 2006 20:16:55 +0000 Subject: [compiler] miscellaneous trivial compiler warning fixes 2006-01-19 Paul Jakma * (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. --- bgpd/bgp_aspath.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'bgpd/bgp_aspath.c') diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index e9a6d6a2..2cc5ed35 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -1309,37 +1309,30 @@ aspath_gettoken (const char *buf, enum as_token *token, u_short *asno) { case '\0': return NULL; - break; case '{': *token = as_token_set_start; p++; return p; - break; case '}': *token = as_token_set_end; p++; return p; - break; case '(': *token = as_token_confed_seq_start; p++; return p; - break; case ')': *token = as_token_confed_seq_end; p++; return p; - break; case '[': *token = as_token_confed_set_start; p++; return p; - break; case ']': *token = as_token_confed_set_end; p++; return p; - break; } /* Check actual AS value. */ @@ -1423,7 +1416,6 @@ aspath_str2aspath (const char *str) default: aspath_free (aspath); return NULL; - break; } } -- cgit v1.2.1