From 173fe5aef4167b9ad35fe514d05ef25fb66c076f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Fri, 2 Aug 2002 23:36:07 +0000 Subject: Replace the types from sys/types.h and netinet/in.h by their glib.h equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932 --- editcap.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'editcap.c') diff --git a/editcap.c b/editcap.c index 4b3b620328..e04f57d608 100644 --- a/editcap.c +++ b/editcap.c @@ -1,7 +1,7 @@ /* Edit capture files. We can delete records, adjust timestamps, or * simply convert from one format to another format. * - * $Id: editcap.c,v 1.24 2002/06/30 20:28:54 guy Exp $ + * $Id: editcap.c,v 1.25 2002/08/02 23:35:46 jmayer Exp $ * * Originally written by Richard Sharpe. * Improved by Guy Harris. @@ -24,10 +24,6 @@ #include #endif -#ifdef HAVE_WINSOCK2_H -#include -#endif - #include #include "wtap.h" @@ -137,8 +133,8 @@ typedef struct { */ static void -edit_callback(u_char *user, const struct wtap_pkthdr *phdr, long offset _U_, - union wtap_pseudo_header *pseudo_header, const u_char *buf) +edit_callback(guchar *user, const struct wtap_pkthdr *phdr, long offset _U_, + union wtap_pseudo_header *pseudo_header, const guchar *buf) { callback_arg *argp = (callback_arg *)user; int err; -- cgit v1.2.3