Get rid of include of <strings.h> from "util.c", as it's not needed, and
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Apr 1999 22:51:44 +0000 (22:51 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Apr 1999 22:51:44 +0000 (22:51 +0000)
change include of <strings.h> in "menu.c" to include <string.h>, the
latter being the ANSI standard include file for string functions; that
eliminates all use of <strings.h< so get rid of test for its existence
in "configure.in" as well.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@239 f5534014-38df-0310-8fa8-9805f1628bb7

config.h.in
configure
configure.in
menu.c
util.c

index ad8d4c00ab4685559bb3fb6601e8346d08ba1f33..205680cb92e1fc0a9ae9af37794c1ea1ed5f024a 100644 (file)
@@ -29,9 +29,6 @@
 /* Define if you have the <stdarg.h> header file.  */
 #undef HAVE_STDARG_H
 
-/* Define if you have the <strings.h> header file.  */
-#undef HAVE_STRINGS_H
-
 /* Define if you have the <sys/ioctl.h> header file.  */
 #undef HAVE_SYS_IOCTL_H
 
index 0c6c7a236b22b32a788529588bd868d2a26e3d7d..4485e7501feee43f6cf6351d266c340a936176e8 100755 (executable)
--- a/configure
+++ b/configure
@@ -1781,7 +1781,7 @@ EOF
 
 fi
 
-for ac_hdr in fcntl.h strings.h sys/ioctl.h sys/time.h unistd.h stdarg.h
+for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h stdarg.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
index 1d677f537dcbcc8907a90cce830aac9d3d20babd..f68e509bdf3e5adf9bc38ae8636d3005f7846563 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.20 1999/03/28 18:31:58 gram Exp $
+# $Id: configure.in,v 1.21 1999/04/05 22:51:43 guy Exp $
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(etypes.h)
 
@@ -114,7 +114,7 @@ fi
 
 dnl Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h sys/time.h unistd.h stdarg.h)
+AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h stdarg.h)
 
 AC_CHECK_HEADERS(sys/sockio.h sys/types.h netinet/in.h)
 
diff --git a/menu.c b/menu.c
index 68d34e2dcc952f95e561ddfe792a5c20acda0366..bf37e8db1a601f8143da8c5bf010175f48c80a35 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -1,7 +1,7 @@
 /* menu.c
  * Menu routines
  *
- * $Id: menu.c,v 1.15 1999/03/01 20:32:54 gram Exp $
+ * $Id: menu.c,v 1.16 1999/04/05 22:51:43 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -32,7 +32,7 @@
 #include <gtk/gtk.h>
 #include <pcap.h>      /* for capture.h */
 
-#include <strings.h>
+#include <string.h>
 
 #include "ethereal.h"
 #include "menu.h"
diff --git a/util.c b/util.c
index 816b0379f9ee5d053e082397cb8fe0530b9270b5..e3b551d24473b53787490672cd75c23036ca3033 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1,7 +1,7 @@
 /* util.c
  * Utility routines
  *
- * $Id: util.c,v 1.12 1999/03/31 08:20:28 guy Exp $
+ * $Id: util.c,v 1.13 1999/04/05 22:51:44 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -32,7 +32,6 @@
 #include <gtk/gtk.h>
 
 #include <stdarg.h>
-#include <strings.h>
 #include <stdio.h>
 
 #ifdef NEED_SNPRINTF_H