httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject Re: cvs commit: apache/src mod_proxy.c (fwd)
Date Wed, 03 Jul 1996 15:17:28 GMT
Ben Laurie wrote:
> Nah. An assignment from char * to const char * is legal. Vice versa is not.

Hmmm... I seem to recall that const could be initialized (once, of
course) but never reassigned later. Thus,

	const char *p = "Howdy";

is OK, but

	const char *p;
	p = "Howdy";

most probably ain't.

There are a few places in the proxy module that uses 'const' in the 2nd
way (and were it looks like 'const' may not be required) but -Wall never
complained about 'em. Chuck's latest commit "fixed" the one that started
this, but what about the others?

Jim Jagielski  << >>   |      "That's a Smith & Wesson,
  **  jaguNET Access Services  **      |       and you've had your six" 
      Email:          |             - James Bond
++         +++      Voice/Fax: 410-931-3157       ++

View raw message