]> git.puffer.fish Git - matthieu/frr.git/commitdiff
nhrpd: clean up SA warning with strncpy
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 11 Mar 2021 12:59:57 +0000 (13:59 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 30 Apr 2021 08:33:18 +0000 (10:33 +0200)
strncpy is replaced by strlcpy.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
nhrpd/linux.c

index b55e656562a736b29f8b92e06c85520adab868f7..4986bfb99c647ea87e71fa082f753e6bc5f68786 100644 (file)
@@ -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"