diff options
author | Jörg Mayer <jmayer@loplof.de> | 2002-08-02 23:36:07 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2002-08-02 23:36:07 +0000 |
commit | 173fe5aef4167b9ad35fe514d05ef25fb66c076f (patch) | |
tree | 21967e4c27ac5e02aa39319022dd2858682fc5f4 /editcap.c | |
parent | ff72b97ee01caee4dff97d07195d802086c65f38 (diff) |
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
Diffstat (limited to 'editcap.c')
-rw-r--r-- | editcap.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 <sys/time.h> #endif -#ifdef HAVE_WINSOCK2_H -#include <winsock2.h> -#endif - #include <string.h> #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; |