Ethereal-dev: [Ethereal-dev] memcmp and memcpy warnings

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

From: Frank Singleton <frank.singleton@xxxxxxxxxxxx>
Date: Thu, 28 Jun 2001 08:48:17 -0500
Hi, 

I get the following warnings when I compile the latest
nightly tarball (28th)

reassemble.c: In function `fragment_equal':
reassemble.c:61: warning: implicit declaration of function `memcmp'
reassemble.c: In function `fragment_add':
reassemble.c:226: warning: implicit declaration of function `memcpy'
Making register.c

Line 61 is 
	return ( ( (ADDRESSES_EQUAL(&key1->src, &key2->src)) &&
		   (ADDRESSES_EQUAL(&key1->dst, &key2->dst)) &&
		   (key1->id    == key2->id) 
		 ) ?
		 TRUE : FALSE);


So I presume ADDRESSES_EQUAL is a memcmp in disguise.

Of course things work ok, but it seems strange. Is there a
prototype or header file missing or .. ?

[frank@cray ethereal-2001-06-28]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)

Running RH7.1 with latest gcc and libs etc.

/Frank

-- 
EUS/SV/Z Frank Singleton      ASO Americas BSS
Office : +1 972 583 3251      ECN 800 33251  
Mobile : +1 214 228 0874      Amateur Radio: VK3FCS/KM5WS   
Email : frank.singleton@xxxxxxxxxxxx

Hardware: HP Omnibook 4150 running Redhat Linux 7.1 (2.4.3-12 kernel).