From: Junio C Hamano Date: Mon, 06 Aug 2012 01:46:51 GMT Subject: Re: [PATCH/RFC v2 08/16] Make in-memory format aware of stat_crc Message-ID: <7vobmo23n8.fsf@alter.siamese.dyndns.org> In-Reply-To: <1344203353-2819-9-git-send-email-t.gummerer@gmail.com> Thomas Gummerer writes: > + 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().