diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2021-03-11 13:59:57 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2021-04-30 10:33:18 +0200 |
commit | 372b887859b7e5739137b02a1cecf2ea702ba586 (patch) | |
tree | 99521ae745a451cc0150ea58e3ea650f64580485 | |
parent | nhrpd: cleaning netlink gre information (diff) | |
download | frr-372b887859b7e5739137b02a1cecf2ea702ba586.tar.xz frr-372b887859b7e5739137b02a1cecf2ea702ba586.zip |
nhrpd: clean up SA warning with strncpy
strncpy is replaced by strlcpy.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r-- | nhrpd/linux.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/nhrpd/linux.c b/nhrpd/linux.c index b55e65656..4986bfb99 100644 --- a/nhrpd/linux.c +++ b/nhrpd/linux.c @@ -7,23 +7,9 @@ * (at your option) any later version. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <fcntl.h> -#include <stdio.h> -#include <unistd.h> -#include <string.h> #include <errno.h> -#include <sys/ioctl.h> -#include <sys/socket.h> -#include <sys/types.h> -#include <asm/types.h> -#include <arpa/inet.h> +#include "zebra.h" #include <linux/if_packet.h> -#include <linux/if_arp.h> -#include <linux/limits.h> #include "nhrp_protocol.h" #include "os.h" |