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

Re: [PATCH] resolve-undo.c: silence compiler complaints by casting void * to char *

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Feb 2, 2010, 15:23 UTC
Message-ID
<97tOvtEqk8MiRaSVk9lJHcwIzHMJLo8v4hw8LEH-4JfIi16BeIKnLA@cipher.nrlssc.navy.mil>
In-Reply-To
<7vr5p4favs.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 10 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
>> Thanks for catching this.
>>
>> In this particular case, I however suspect that it would be cleaner to
>> declare that the first parameter to resolve_undo_read() is a "char *"
>> (or even "const char *"), as we are dealing with NUL delimited list of
>> octal numbers and character strings.
> 
> It would look like this.
This works for me.

Thanks, -brandon

Previous: Junio C Hamano
Message 4 of 4 in “resolve-undo.c: silence compiler complaints by casting void * to char *”
  1. resolve-undo.c: silence compiler complaints by casting void * to char *Brandon Casey, Feb 1, 2010
  2. Junio C HamanoFeb 1, 2010
  3. Junio C HamanoFeb 2, 2010
  4. Brandon CaseyFeb 2, 2010

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.