diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-08 16:52:36 +0400 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 17:06:52 +0100 |
commit | 3dbda0ceebe369a1071600fe7d8d8ecf45f1027c (patch) | |
tree | 1df830052d1a516bc4ec6b213b36b16d28c9868d /babeld/message.c | |
parent | ef4de4d36c2dc10a68d41e518057d04b262ec867 (diff) |
babeld: address some compilation warnings
Including system headers is not necessary with zebra.h included and
sometimes results in "__ASSERT_FUNCTION redefined" compilation warning.
* babeld.c
* babel_distribute_update_interface(): make static
* babel_interface.c
* interface_config_write(): unused 'babel_ifp'
* don't include system headers
* message.c
* send_request(): unused 'babel_ifp'
* send_multihop_request(): idem
* don't include system headers
* route.c: don't include system headers
* xroute.c: idem
* source.h: newline at EOF
* message.h: idem
Diffstat (limited to 'babeld/message.c')
-rw-r--r-- | babeld/message.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/babeld/message.c b/babeld/message.c index 57d875fb..7930a1b1 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -37,14 +37,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <stdlib.h> -#include <string.h> -#include <stdio.h> -#include <assert.h> -#include <sys/time.h> -#include <netinet/in.h> -#include <arpa/inet.h> - #include <zebra.h> #include "if.h" @@ -1216,7 +1208,6 @@ void send_request(struct interface *ifp, const unsigned char *prefix, unsigned char plen) { - babel_interface_nfo *babel_ifp = NULL; int v4, len; if(ifp == NULL) { @@ -1236,7 +1227,6 @@ send_request(struct interface *ifp, if(!if_up(ifp)) return; - babel_ifp = babel_get_if_nfo(ifp); debugf(BABEL_DEBUG_COMMON,"sending request to %s for %s.", ifp->name, prefix ? format_prefix(prefix, plen) : "any"); v4 = plen >= 96 && v4mapped(prefix); @@ -1288,7 +1278,6 @@ send_multihop_request(struct interface *ifp, unsigned short seqno, const unsigned char *id, unsigned short hop_count) { - babel_interface_nfo *babel_ifp = NULL; int v4, pb, len; /* Make sure any buffered updates go out before this request. */ @@ -1308,7 +1297,6 @@ send_multihop_request(struct interface *ifp, if(!if_up(ifp)) return; - babel_ifp = babel_get_if_nfo(ifp); debugf(BABEL_DEBUG_COMMON,"Sending request (%d) on %s for %s.", hop_count, ifp->name, format_prefix(prefix, plen)); v4 = plen >= 96 && v4mapped(prefix); |