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
Junio C Hamano <gitster@pobox.com>
Date
Feb 1, 2010, 23:44 UTC
Message-ID
<7vsk9kplla.fsf@alter.siamese.dyndns.org>
In-Reply-To
<qzbyPiTgRGI0lsxvEmFa0WtwK5ko5snXQDNffxC66y9v0rlie5pcKzGT28WpzfQlFd0OvJNY_jo@cipher.nrlssc.navy.mil>
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.

Previous: Brandon CaseyNext: Junio C Hamano
Message 2 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.