Ethereal-dev: Re: [Ethereal-dev] Re: [Ethereal-cvs] rev 15286: /trunk/gtk/:capture_prefs.c col

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: Thu, 11 Aug 2005 09:25:59 -0700
Thomas Steffen wrote:

Yes, I ofter have the same problem, sometimes it is also with (char*)
and (unsigned char*). While the cast is quieter, I don't think it is
the better solution, because it basically the little typechecking
there is in C.s

The problem with the cases to which we're referring is that, in those cases, the type checking is checking against what amounts to an improper definition of an API - the definition *should* have declared a pointer as pointing to, ultimately, const data, but didn't.

I.e., these are cases where the type checking isn't doing any good - it's doing harm, in that it's producing more warnings.