]> git.proxmox.com Git - mirror_frr.git/commit
lib: fix more warnings on *BSD
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 2 Feb 2018 01:18:46 +0000 (23:18 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 2 Feb 2018 18:31:20 +0000 (16:31 -0200)
commita37bd5e070a0a11d03522a12b5d2b9a2647f7bbb
treec71b522a2f4d08b3af69fd793471c74990942064
parenta7ce0ad1dacc62d01ec11422586b211c5239e890
lib: fix more warnings on *BSD

* zebra/kernel_socket.c: include "rt.h" to provide the prototypes of
  kernel_init() and kernel_terminate();

* lib/prefix.h: remove the deprecation warning whenever ETHER_ADDR_LEN
  is used. isisd uses the ETHER_HDR_LEN constant which is defined in
  terms of ETHER_ADDR_LEN in the *BSD system headers. So, when building
  FRR on *BSD, we were getting several warnings because we were using
  ETHER_ADDR_LEN indirectly;

* lib/command_lex.l, lib/defun_lex.l: ignore other harmless warnings;

* lib/spf_backoff.c: cast 'tv->tv_usec' to 'long int' before printing.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/command_lex.l
lib/defun_lex.l
lib/prefix.h
lib/spf_backoff.c
zebra/kernel_socket.c