]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
src: #include <limits.h> when using strtonum()
authorVincent Bernat <vincent@bernat.im>
Thu, 7 Sep 2017 17:52:01 +0000 (19:52 +0200)
committerVincent Bernat <vincent@bernat.im>
Thu, 7 Sep 2017 17:52:01 +0000 (19:52 +0200)
`strtonum()` seems to work without it, but there is a hint in issue #242
that there is something fishy around that.

src/client/conf-lldp.c
src/daemon/lldpd.c

index c16219bd44c60be9410afb0a3dcf8e403a8c72c9..c9939f1b4a5fdce3d798a642a8d9e45bcf3976c1 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <unistd.h>
 #include <string.h>
+#include <limits.h>
 
 #include "client.h"
 #include "../log.h"
index 6603d6041ef121672700fb02d5fecff4eb00eeed..45397fd365621f798233a5442bcab339e51cd42b 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>
+#include <limits.h>
 #include <signal.h>
 #include <sys/stat.h>
 #include <fcntl.h>