Ethereal-dev: Re: [Ethereal-dev] splitcap

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sat, 20 Sep 2003 03:31:35 -0700
On Sun, May 25, 2003 at 11:38:26PM +0100, Graeme Hewson wrote:
> Attached is splitcap, a program for splitting capture files into
> separate files.

It doesn't compile:

splitcap.c: In function `split_eth':
splitcap.c:664: incompatible type for argument 1 of `ether_to_str'
splitcap.c:667: incompatible type for argument 1 of `ether_to_str'
splitcap.c:670: incompatible type for argument 1 of `ether_to_str'
splitcap.c:673: incompatible type for argument 1 of `ether_to_str'
splitcap.c: In function `split_tr':
splitcap.c:750: incompatible type for argument 1 of `ether_to_str'
splitcap.c:759: incompatible type for argument 1 of `ether_to_str'
splitcap.c:764: subscripted value is neither array nor pointer
splitcap.c: In function `split_tcp':
splitcap.c:1068: structure has no member named `doff'
splitcap.c:1081: structure has no member named `source'
splitcap.c:1081: structure has no member named `source'
splitcap.c:1081: structure has no member named `source'
splitcap.c:1081: structure has no member named `source'
splitcap.c:1086: structure has no member named `dest'
splitcap.c:1086: structure has no member named `dest'
splitcap.c:1086: structure has no member named `dest'
splitcap.c:1086: structure has no member named `dest'
splitcap.c:1091: structure has no member named `source'
splitcap.c:1091: structure has no member named `dest'
splitcap.c:1092: structure has no member named `source'
splitcap.c:1061: warning: `hdr_len' might be used uninitialized in this
function
splitcap.c:1081: warning: `__v' might be used uninitialized in this
function
splitcap.c:1086: warning: `__v' might be used uninitialized in this
function
splitcap.c: In function `split_udp':
splitcap.c:1133: structure has no member named `source'
splitcap.c:1133: structure has no member named `source'
splitcap.c:1133: structure has no member named `source'
splitcap.c:1133: structure has no member named `source'
splitcap.c:1138: structure has no member named `dest'
splitcap.c:1138: structure has no member named `dest'
splitcap.c:1138: structure has no member named `dest'
splitcap.c:1138: structure has no member named `dest'
splitcap.c:1143: structure has no member named `source'
splitcap.c:1143: structure has no member named `dest'
splitcap.c:1144: structure has no member named `source'
splitcap.c:1133: warning: `__v' might be used uninitialized in this
function
splitcap.c:1138: warning: `__v' might be used uninitialized in this
function

> I haven't included updates for the following files/directories:
> 
> Makefile.nmake
> doc/Makefile.nmake
> README.win32
> debian/
> image/
> packaging/nsis/

Could you do those with the appropriate cut-and-pastes?