summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_aspath.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-09-02 12:07:01 +0100
committerChris Hall <chris.hall@highwayman.com>2011-09-02 12:07:01 +0100
commit3593a823ca0dd92bbe58aa3464d8a371f6f35e70 (patch)
tree933eadc60f5c9e16dc5d9bf6b3762870a11d1a81 /bgpd/bgp_aspath.c
parent3690074a486cfada568975e287d9cbb9e687501f (diff)
downloadquagga-3593a823ca0dd92bbe58aa3464d8a371f6f35e70.tar.bz2
quagga-3593a823ca0dd92bbe58aa3464d8a371f6f35e70.tar.xz
Changed gcc options to -std=c99 and -O2, and tighted warnings.
Some small changes to accomodate same.
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r--bgpd/bgp_aspath.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index dc6ed166..6fdd53c0 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1508,6 +1508,10 @@ aspath_reconcile_as4 ( struct aspath *aspath, struct aspath *as4path)
case AS_SEQUENCE:
cpasns = MIN(seg->length, hops);
hops -= seg->length;
+ break ;
+
+ default:
+ break ;
}
assert (cpasns <= seg->length);
@@ -1726,6 +1730,8 @@ aspath_gettoken (const char *buf, enum as_token *token, u_long *asno)
*token = as_token_confed_set_end;
p++;
return p;
+ default:
+ break ;
}
/* Check actual AS value. */