diff options
author | Paul Jakma <paul@quagga.net> | 2011-04-08 12:44:43 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-01-06 16:18:18 +0000 |
commit | f63f06da2e7be6b17c72dd6110aae179f42f3700 (patch) | |
tree | a36b625a9ea06d0720a240276ed1b8af33193ed7 /bgpd | |
parent | 651e70d7f419ee7af75113f80e688c0100e9cff5 (diff) |
general: remove inline qualifiers and move in-header functions to objects
* (general) Move functions in headers into files, to be compiled into
shared object files. Remove inline qualifier from functions. Let the
compiler do the work.
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_aspath.c | 8 | ||||
-rw-r--r-- | bgpd/bgpd.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index ba4f5b48..776c7127 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -91,13 +91,13 @@ static struct hash *ashash; /* Stream for SNMP. See aspath_snmp_pathseg */ static struct stream *snmp_stream; -static inline as_t * +static as_t * assegment_data_new (int num) { return (XCALLOC (MTYPE_AS_SEG_DATA, ASSEGMENT_DATA_SIZE (num, 1))); } -static inline void +static void assegment_data_free (as_t *asdata) { XFREE (MTYPE_AS_SEG_DATA,asdata); @@ -812,7 +812,7 @@ aspath_parse (struct stream *s, size_t length, int use32bit) return find; } -static inline void +static void assegment_data_put (struct stream *s, as_t *as, int num, int use32bit) { int i; @@ -830,7 +830,7 @@ assegment_data_put (struct stream *s, as_t *as, int num, int use32bit) } } -static inline size_t +static size_t assegment_header_put (struct stream *s, u_char type, int length) { size_t lenp; diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index a75fb939..5dc014be 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -695,7 +695,7 @@ peer_sort (struct peer *peer) } } -static inline void +static void peer_free (struct peer *peer) { assert (peer->status == Deleted); |