]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
splint tweaks
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 21 Jun 2005 12:15:22 +0000 (12:15 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 21 Jun 2005 12:15:22 +0000 (12:15 +0000)
ldns/common.h
tests/notify.c

index 4fd595eb9c314b4f29ac967a5d10fd2bccf86957..c2627f472de3aa2f853927ffb50b209d938e7496 100644 (file)
 
 #if !defined(__cplusplus) && !defined(__bool_true_false_are_defined)
 
-# if defined(HAVE_STDBOOL_H)
-#  include <stdbool.h>
-# else
+#if defined(HAVE_STDBOOL_H)
+#include <stdbool.h>
+#else
 
+/*@ignore@*/
+/* splint barfs on this construct */
 typedef unsigned char bool;
-#  define bool bool
-#  define false 0
-#  define true  1
-#  define __bool_true_false_are_defined 1
+#define bool bool
+#define false 0
+#define true  1
+#define __bool_true_false_are_defined 1
+/*@end@*/
 
-# endif
+#endif
 
 #endif
 
index fbb521ebd6e4903aef26837447fdfba43a4f3f40..a51279ba74f4538cb5f0d10b73aea6892356cb3a 100644 (file)
@@ -49,6 +49,5 @@ main(int argc, char **argv)
        ldns_pkt_print(stdout, notify);
 
        /*ldns_resolver_send_pkt(NULL, res, notify)*/
-
         return EXIT_SUCCESS;
 }