]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix lint on FreeBSD.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 11 Feb 2011 17:30:19 +0000 (17:30 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 11 Feb 2011 17:30:19 +0000 (17:30 +0000)
drill/Makefile.in
examples/Makefile.in
examples/ldns-dpa.c
examples/ldns-notify.c

index 7d8d3354f2cc8fbb9a5c268be2a70a2c3cc7249b..653cc51bceda3345bec6dedf1ef83b398ae74adb 100644 (file)
@@ -36,7 +36,7 @@ endif
 LINTFLAGS+="-Dsigset_t=long"
 # FreeBSD8
 LINTFLAGS+="-D__uint16_t=uint16_t"
-LINTFLAGS+=-D__signed__=signed
+LINTFLAGS+=-D__signed__=signed "-D__packed=" "-D__aligned(x)="
 
 OBJ=drill.o drill_util.o error.o root.o work.o chasetrace.o dnssec.o securetrace.o
 SRC=$(OBJ:.o=.c)
index 60102feaabfa54f0eb85f0cdd64c3b0f9a4db786..659efc0c33cc2fa7ec685a144d05170b5ae6b95c 100644 (file)
@@ -41,7 +41,7 @@ endif
 LINTFLAGS+="-Dsigset_t=long"
 # FreeBSD8
 LINTFLAGS+="-D__uint16_t=uint16_t"
-LINTFLAGS+=-D__signed__=signed
+LINTFLAGS+=-D__signed__=signed "-D__packed=" "-D__aligned(x)="
 
 HEADER         = config.h
 MAIN_SOURCES = ldns-read-zone.c \
index 1d761327da3c173e1c8067c2098c5cc44186e88d..8d18dd6938f6b15e814436d0f267ff837830fde0 100644 (file)
@@ -370,7 +370,9 @@ print_match_operation(FILE *output, match_operation *mc)
                                        }
                                        break;
                                case TYPE_TIMESTAMP:
+#ifndef S_SPLINT_S
                                        time.tv_sec = (long int) atol(mc->value);
+#endif
                                        time_tt = (time_t)time.tv_sec;
                                        tmp = ctime(&time_tt);
                                        tmp2 = malloc(strlen(tmp) + 1);
index d34f2ba7afee639db6e5be5867ac5c7482383cba..258dc09b2605d16c9413b3082243c7e9779eccf2 100644 (file)
@@ -85,7 +85,9 @@ notify_host(int s, struct addrinfo* res, uint8_t* wire, size_t wiresize,
                /* wait for ACK packet */
                FD_ZERO(&rfds);
                FD_SET(s, &rfds);
+#ifndef S_SPLINT_S
                tv.tv_sec = timeout_retry; /* seconds */
+#endif
                tv.tv_usec = 0; /* microseconds */
                retval = select(s + 1, &rfds, NULL, NULL, &tv);
                if (retval == -1) {