Replace the types from sys/types.h and netinet/in.h by their glib.h

equivalents in the READMEs and examples in the doc/ directory.

svn path=/trunk/; revision=5933
This commit is contained in:
Jörg Mayer 2002-08-02 23:46:26 +00:00
parent 173fe5aef4
commit 81125f51c0
2 changed files with 5 additions and 13 deletions

View File

@ -1,4 +1,4 @@
$Id: README.developer,v 1.59 2002/07/15 20:31:06 guy Exp $
$Id: README.developer,v 1.60 2002/08/02 23:46:25 jmayer Exp $
This file is a HOWTO for Ethereal developers. It describes how to start coding
a Ethereal protocol dissector and the use some of the important functions and
@ -139,7 +139,7 @@ code inside
is needed only if you are using the "snprintf()" function.
The "$Id: README.developer,v 1.59 2002/07/15 20:31:06 guy Exp $"
The "$Id: README.developer,v 1.60 2002/08/02 23:46:25 jmayer Exp $"
in the comment will be updated by CVS when the file is
checked in; it will allow the RCS "ident" command to report which
version of the file is currently checked out.
@ -149,7 +149,7 @@ version of the file is currently checked out.
* Routines for PROTONAME dissection
* Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS>
*
* $Id: README.developer,v 1.59 2002/07/15 20:31:06 guy Exp $
* $Id: README.developer,v 1.60 2002/08/02 23:46:25 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -184,14 +184,6 @@ version of the file is currently checked out.
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#include <glib.h>
#ifdef NEED_SNPRINTF_H

View File

@ -1,4 +1,4 @@
$Id: README.tvbuff,v 1.4 2000/06/15 03:49:00 gram Exp $
$Id: README.tvbuff,v 1.5 2002/08/02 23:46:26 jmayer Exp $
TVBUFFs and Exceptions
@ -198,7 +198,7 @@ dissect_cops(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
#else
static void
dissect_cops(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
dissect_cops(const guchar *pd, int offset, frame_data *fd, proto_tree *tree)
{
tvbuff_t *tvb;
packet_info *pinfo = &pi;