]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
make examples lint work on linux machine
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Wed, 25 Jul 2007 12:33:14 +0000 (12:33 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Wed, 25 Jul 2007 12:33:14 +0000 (12:33 +0000)
examples/Makefile.in
examples/ldns-testns.c
examples/ldnsd.c
str2host.c

index 6de41ec4d295a86546c065336ae5edb5b88fc596..647f70a0c6967946c2346a6aaf32776c1d3f771a 100644 (file)
@@ -24,7 +24,7 @@ LINK          = $(libtool) --tag=CC --mode=link $(CC) $(LDFLAGS) $(LIBS)
 LINK_STATIC    = $(libtool) --tag=CC --mode=link $(CC) -static $(LDFLAGS) $(LIBS)
 
 LINT           = splint
-LINTFLAGS      = +quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -preproc
+LINTFLAGS      = +quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -D__u16=uint16_t -D__u32=uint32_t -preproc
 
 HEADER         = config.h
 MAIN_SOURCES = ldns-read-zone.c \
index f54d03e7ca4641478e52c3a8ac6e25d98500c861..d8ad2fca6e0b7dfa754b3baa8690b869bf0ec0f0 100644 (file)
@@ -122,9 +122,6 @@ struct sockaddr_storage;
 #include <ldns/ldns.h>
 #include "ldns-testpkts.h"
 
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
index ef8d0a8940277f46f6ed0ca1016e9918dc000238..ecc4e56d48cf7f1abfe4b3f3f99cf49092a4bead 100644 (file)
@@ -10,7 +10,6 @@
 #include "config.h"
 #include <ldns/ldns.h>
 
-#include <sys/types.h>
 #include <sys/socket.h>
 
 #include <arpa/inet.h>
index 287a9eea06e7cf74b2a53d2e72d6352eea9465a9..785a5001b44f07c6f80f7c647fd68d013360980b 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <ldns/ldns.h>
 
-#include <sys/types.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
 #include <time.h>