Ethereal-dev: Re: [Ethereal-dev] RTP Graph analysis

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 01 Oct 2004 00:21:11 -0700
Alejandro Vaquero wrote:

	Attached is a new version with the warnings fixed.

Checked in.

Still some warnings from GCC:

rtp_analysis.c: In function `get_clock_rate':
rtp_analysis.c:231: warning: comparison between signed and unsigned
rtp_analysis.c: In function `rtp_packet_add_graph':
rtp_analysis.c:441: warning: unused parameter `rtpinfo'

The first of those antedates your changes - the problem is that the key in a key_value structure is unsigned (guint32), but -1 is used as the end-of-table indicator - and the comparison between the key and -1 gets a warning. (It also returns -1 as a "clock rate not found" value - but no callers check for that; they should do so.)

The second warning is new - is there anything in "rtp_packet_add_graph()" that could, or should, use something in the structure pointed to by "rtpinfo"? If not, that parameter should be removed.