read-cache: trivial style cleanups

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed May 30, 2013 at 08:56 UTC c4aa3167fe9dd0b94594c20d8b3673929fcb217d
1 file changed +2 -2
read-cache.c
+2 -2
@@ -975,7 +975,7 @@ int add_index_entry(struct index_state *istate, struct cache_entry *ce, int opti
975 if (istate->cache_nr == istate->cache_alloc) {
976 istate->cache_alloc = alloc_nr(istate->cache_alloc);
977 istate->cache = xrealloc(istate->cache,
978 - istate->cache_alloc * sizeof(struct cache_entry *));
978 + istate->cache_alloc * sizeof(*istate->cache));
979 }
980
981 /* Add it in.. */
@@ -1445,7 +1445,7 @@ int read_index_from(struct index_state *istate, const char *path)
1445 istate->version = ntohl(hdr->hdr_version);
1446 istate->cache_nr = ntohl(hdr->hdr_entries);
1447 istate->cache_alloc = alloc_nr(istate->cache_nr);
1448 - istate->cache = xcalloc(istate->cache_alloc, sizeof(struct cache_entry *));
1448 + istate->cache = xcalloc(istate->cache_alloc, sizeof(*istate->cache));
1449 istate->initialized = 1;
1450
1451 if (istate->version == 4)