From: Harlan Stenn Date: Thu, 12 Aug 2004 02:28:30 +0000 (-0400) Subject: FreeBSD lint X-Git-Tag: NTP_4_2_3~133^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3dd49d8904bcffacfe1cc827bb0df0cbb840be8;p=thirdparty%2Fntp.git FreeBSD lint bk: 411ad5ceFyDoBoYY-_pXNysal_5NEQ --- diff --git a/Makefile.am b/Makefile.am index b98665cdf6..35eaf4e483 100644 --- a/Makefile.am +++ b/Makefile.am @@ -70,7 +70,7 @@ EXTRA_DIST = \ \ version -DISTCLEANFILES = .warning +DISTCLEANFILES = .gcc-warning #ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.ac ETAGS_ARGS = Makefile.am configure.ac @@ -78,8 +78,8 @@ ETAGS_ARGS = Makefile.am configure.ac # HMS: make ports be the last directory... # DIST_HOOK_DIRS = conf html scripts ports -# HMS: Keep .warning first, as that way it gets printed first. -BUILT_SOURCES = .warning $(srcdir)/COPYRIGHT $(srcdir)/version +# HMS: Keep .gcc-warning first, as that way it gets printed first. +BUILT_SOURCES = .gcc-warning $(srcdir)/COPYRIGHT $(srcdir)/version $(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html ( echo "This file is automatically generated from html/copyright.html" ; lynx -dump $(srcdir)/html/copyright.html ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT @@ -103,7 +103,7 @@ dist-hook: @for i in `find $(distdir)/ports/winnt -type f -name '*.ds*' -print`; \ do chmod u+w $$i ; unix2dos $$i $$i; done -.warning: +.gcc-warning: @echo "Compiling with GCC now generates lots of new warnings." @echo " " @echo "Don't be concerned. They're just warnings." @@ -113,7 +113,7 @@ dist-hook: @echo "Feel free to send patches that fix these warnings, though." @echo " " @sleep 1 - @touch .warning + @touch .gcc-warning # HMS: The following seems to be a work-in-progress... diff --git a/ntpdc/ntpdc.c b/ntpdc/ntpdc.c index 130b11d927..c0b3ba4a69 100644 --- a/ntpdc/ntpdc.c +++ b/ntpdc/ntpdc.c @@ -449,7 +449,11 @@ openhost( hints.ai_flags = AI_NUMERICHOST; a_info = getaddrinfo(hname, service, &hints, &ai); - if (a_info == EAI_NONAME || a_info == EAI_NODATA) { + if (a_info == EAI_NONAME +#ifdef EAI_NODATA + || a_info == EAI_NODATA +#endif + ) { hints.ai_flags = AI_CANONNAME; #ifdef AI_ADDRCONFIG hints.ai_flags |= AI_ADDRCONFIG; diff --git a/ntpq/ntpq.c b/ntpq/ntpq.c index 493e61f7b5..a19f8c111d 100644 --- a/ntpq/ntpq.c +++ b/ntpq/ntpq.c @@ -631,7 +631,11 @@ openhost( hints.ai_flags = AI_NUMERICHOST; a_info = getaddrinfo(hname, service, &hints, &ai); - if (a_info == EAI_NONAME || a_info == EAI_NODATA) { + if (a_info == EAI_NONAME +#ifdef EAI_NODATA + || a_info == EAI_NODATA +#endif + ) { hints.ai_flags = AI_CANONNAME; #ifdef AI_ADDRCONFIG hints.ai_flags |= AI_ADDRCONFIG;