Re: [PATCH/RFC v2 08/16] Make in-memory format aware of stat_crc
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 6, 2012, 01:46 UTC
- Message-ID
- <7vobmo23n8.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1344203353-2819-9-git-send-email-t.gummerer@gmail.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
Show 12 quoted lines
> + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_ino); > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_size); > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_dev); > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_uid); > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_gid); > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + return stat_crc;
What are these (Bytef *) casts are about? We do not use it in any of our existing calls to crc32().