]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix compiler warnings on SCO OSr5
authorEvan Hunt <each@isc.org>
Thu, 13 Sep 2007 04:45:18 +0000 (04:45 +0000)
committerEvan Hunt <each@isc.org>
Thu, 13 Sep 2007 04:45:18 +0000 (04:45 +0000)
CHANGES
bin/check/check-tool.c
bin/named/config.c
bin/named/control.c
bin/tests/system/lwresd/lwtest.c
configure.in
lib/bind9/check.c
lib/isc/include/isc/platform.h.in
lib/isc/include/isc/string.h

diff --git a/CHANGES b/CHANGES
index 15569557161163529861bb6049e2e195bbbbde30..2b22a19b72c2620eeff9480e2a3335d943ef5f7e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2234.   [port]          Correct some compiler warnings on SCO OSr5 [RT #17134]
+  
 2233.   [func]          Add support for O(1) ACL processing, based on
                         radix tree code originally written by kevin
                         brintnall. [RT #16288]
index 3edcfc9f80e1dd5259e8b7f09b18dee389285684..85067ddb2538c312ac5c933daac7e9b0e876b6b5 100644 (file)
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: check-tool.c,v 1.30 2007/08/06 01:06:49 marka Exp $ */
+/* $Id: check-tool.c,v 1.31 2007/09/13 04:45:18 each Exp $ */
 
 /*! \file */
 
 #include <config.h>
 
 #include <stdio.h>
-#include <string.h>
 
 #include "check-tool.h"
-#include <isc/util.h>
-
 #include <isc/buffer.h>
 #include <isc/log.h>
-#include <isc/net.h>
+#include <isc/mem.h>
 #include <isc/netdb.h>
+#include <isc/net.h>
 #include <isc/region.h>
 #include <isc/stdio.h>
+#include <isc/string.h>
 #include <isc/symtab.h>
 #include <isc/types.h>
-#include <isc/mem.h>
+#include <isc/util.h>
 
 #include <dns/fixedname.h>
 #include <dns/log.h>
index 993c948f3e7a43021241d23c7022408661d31674..23d97e65546329f906f2a9a62cbe3ddd0a586974 100644 (file)
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: config.c,v 1.79 2007/06/18 23:47:18 tbox Exp $ */
+/* $Id: config.c,v 1.80 2007/09/13 04:45:18 each Exp $ */
 
 /*! \file */
 
 #include <config.h>
 
 #include <stdlib.h>
-#include <string.h>
 
 #include <isc/buffer.h>
 #include <isc/log.h>
@@ -31,6 +30,7 @@
 #include <isc/region.h>
 #include <isc/result.h>
 #include <isc/sockaddr.h>
+#include <isc/string.h>
 #include <isc/util.h>
 
 #include <isccfg/namedconf.h>
index 3567a1c59d6554159689dd3a6f8b69d57fe517d3..8bd8f6ce361fd1ab07f82068b585ed51085782d6 100644 (file)
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: control.c,v 1.32 2007/06/18 23:47:18 tbox Exp $ */
+/* $Id: control.c,v 1.33 2007/09/13 04:45:18 each Exp $ */
 
 /*! \file */
 
 #include <config.h>
 
-#include <string.h>
 
 #include <isc/app.h>
 #include <isc/event.h>
 #include <isc/mem.h>
+#include <isc/string.h>
 #include <isc/timer.h>
 #include <isc/util.h>
 
index 76fa618df0ec71691b98918c452f59042bd92661..263acb399416ab78d2830caa2ca56e4ec5e78b1c 100644 (file)
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: lwtest.c,v 1.28 2007/06/19 23:47:04 tbox Exp $ */
+/* $Id: lwtest.c,v 1.29 2007/09/13 04:45:18 each Exp $ */
 
 #include <config.h>
 
 #include <assert.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include <isc/net.h>
+#include <isc/string.h>
 
 #include <lwres/lwres.h>
 #include <lwres/netdb.h>
index 2a0d0e36d547dae38a01315dc53753ebbdac8e60..52ae0ba48a3ec4f2a311f37eb7291d49177191fc 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.430 $)
+AC_REVISION($Revision: 1.431 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.59)
@@ -2059,6 +2059,13 @@ case "$hack_shutup_stdargcast" in
                ;;
 esac
 
+AC_CHECK_HEADERS(strings.h,
+  ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
+,
+  ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
+)
+AC_SUBST(ISC_PLATFORM_HAVESTRINGSH)
+
 #
 # Check for if_nametoindex() for IPv6 scoped addresses support
 #
index 7d20a003b4b31360e4172cf8c7e108e9a4613c89..0ef51ba40aee5f69d8fa5f7836446d956e673911 100644 (file)
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: check.c,v 1.82 2007/09/12 01:09:08 each Exp $ */
+/* $Id: check.c,v 1.83 2007/09/13 04:45:18 each Exp $ */
 
 /*! \file */
 
 #include <config.h>
 
 #include <stdlib.h>
-#include <string.h>
 
 #include <isc/buffer.h>
 #include <isc/log.h>
@@ -32,6 +31,7 @@
 #include <isc/region.h>
 #include <isc/result.h>
 #include <isc/sockaddr.h>
+#include <isc/string.h>
 #include <isc/symtab.h>
 #include <isc/util.h>
 
index 6e20b14452732abcf11130ac6c2fdfa9bf933108..8f3c5920c2e70fa5b684bcb86230b571cb14808b 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: platform.h.in,v 1.44 2007/06/18 23:47:44 tbox Exp $ */
+/* $Id: platform.h.in,v 1.45 2007/09/13 04:45:18 each Exp $ */
 
 #ifndef ISC_PLATFORM_H
 #define ISC_PLATFORM_H 1
  */
 @ISC_PLATFORM_USESTDASM@
 
+/*
+ * Define if the platform has <strings.h>.
+ */
+@ISC_PLATFORM_HAVESTRINGSH@
+
 /***
  ***   Windows dll support.
  ***/
index a6848ea76a8cffc525c1da653314bb9a61d64e55..7994cd94b7bd6d1c5e2e60d90d8af42d32325796 100644 (file)
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: string.h,v 1.21 2007/09/02 23:06:59 marka Exp $ */
+/* $Id: string.h,v 1.22 2007/09/13 04:45:18 each Exp $ */
 
 #ifndef ISC_STRING_H
 #define ISC_STRING_H 1
 
 /*! \file isc/string.h */
 
-#include <string.h>
-
 #include <isc/formatcheck.h>
 #include <isc/int.h>
 #include <isc/lang.h>
 #include <isc/platform.h>
 #include <isc/types.h>
 
+#include <string.h>
+
+#ifdef ISC_PLATFORM_HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #define ISC_STRING_MAGIC 0x5e
 
 ISC_LANG_BEGINDECLS