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.