git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 01/02] ident.c: Use const qualifier when possible

From
Junio C Hamano <junkio@cox.net>
Date
Apr 15, 2007, 20:14 UTC
Message-ID
<7vslb12y4e.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200704152106.51082.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> writes:
Show 10 quoted lines
> On Sunday 2007, April 15, Luiz Fernando N. Capitulino wrote:
>
>> -static const char *env_hint =
>> +static const char const *env_hint =
>
> You can see then that
>
>  const char const *env_hint
>
> is redundant, it's simply saying twice that (*env_hint) is const.
I think he wanted to say
	static const char *const env_hint = ...
Previous: Andy ParkinsNext: Luiz Fernando N. Capitulino
Message 3 of 4 in “ident.c: Use const qualifier when possible”
  1. 01/02 ident.c: Use const qualifier when possibleLuiz Fernando N. Capitulino, Apr 15, 2007
  2. Andy ParkinsApr 15, 2007
  3. Junio C HamanoApr 15, 2007
  4. Luiz Fernando N. CapitulinoApr 15, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.