Get rid of include of <strings.h> from "util.c", as it's not needed, and

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.

svn path=/trunk/; revision=239
This commit is contained in:
Guy Harris 1999-04-05 22:51:44 +00:00
parent 2400bb0453
commit 271f2a1fff
5 changed files with 6 additions and 10 deletions

View 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

2
configure vendored
View File

@ -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

View 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)

4
menu.c
View File

@ -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"

3
util.c
View File

@ -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