From: Miek Gieben Date: Tue, 21 Jun 2005 12:15:22 +0000 (+0000) Subject: splint tweaks X-Git-Tag: release-0.70~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e89de415acfd4394796ec89fd08cd83b7e299e0;p=thirdparty%2Fldns.git splint tweaks --- diff --git a/ldns/common.h b/ldns/common.h index 4fd595eb..c2627f47 100644 --- a/ldns/common.h +++ b/ldns/common.h @@ -15,17 +15,20 @@ #if !defined(__cplusplus) && !defined(__bool_true_false_are_defined) -# if defined(HAVE_STDBOOL_H) -# include -# else +#if defined(HAVE_STDBOOL_H) +#include +#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 diff --git a/tests/notify.c b/tests/notify.c index fbb521eb..a51279ba 100644 --- a/tests/notify.c +++ b/tests/notify.c @@ -49,6 +49,5 @@ main(int argc, char **argv) ldns_pkt_print(stdout, notify); /*ldns_resolver_send_pkt(NULL, res, notify)*/ - return EXIT_SUCCESS; }