Ethereal-dev: Re: [Ethereal-dev] col_set_str constant parameter

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: Thu, 19 Jun 2003 14:43:15 -0700

On Thursday, June 19, 2003, at 2:39PM, Shaun Jackman wrote:

Should the prototype for col_set_str take a const gchar*?

Only if it causes fewer problems than it solves. In at least some cases, routines that could, in theory, be declared as taking a "const XXX *" aren't, because the pointer is, for example, later passed to a routine that is declared as taking an "XXX *" rather than a "const XXX *" even though it isn't going to be modified what the argument points to.