Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
read-cache: trivial style cleanups
author
Felipe Contreras
<felipe.contreras@gmail.com>
Thu, 30 May 2013 13:56:19 +0000
(08:56 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 3 Jun 2013 17:10:38 +0000
(10:10 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
582eb85
)
diff --git
a/read-cache.c
b/read-cache.c
index aeda7180bac62c14b431d6bd96d5b314e013ff04..3bb5c91d06f3a1f0a83e05778d29d80fca1e3e9c 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-975,7
+975,7
@@
int add_index_entry(struct index_state *istate, struct cache_entry *ce, int opti
if (istate->cache_nr == istate->cache_alloc) {
istate->cache_alloc = alloc_nr(istate->cache_alloc);
istate->cache = xrealloc(istate->cache,
if (istate->cache_nr == istate->cache_alloc) {
istate->cache_alloc = alloc_nr(istate->cache_alloc);
istate->cache = xrealloc(istate->cache,
- istate->cache_alloc * sizeof(
struct cache_entry *
));
+ istate->cache_alloc * sizeof(
*istate->cache
));
}
/* Add it in.. */
}
/* Add it in.. */
@@
-1445,7
+1445,7
@@
int read_index_from(struct index_state *istate, const char *path)
istate->version = ntohl(hdr->hdr_version);
istate->cache_nr = ntohl(hdr->hdr_entries);
istate->cache_alloc = alloc_nr(istate->cache_nr);
istate->version = ntohl(hdr->hdr_version);
istate->cache_nr = ntohl(hdr->hdr_entries);
istate->cache_alloc = alloc_nr(istate->cache_nr);
- istate->cache = xcalloc(istate->cache_alloc, sizeof(
struct cache_entry *
));
+ istate->cache = xcalloc(istate->cache_alloc, sizeof(
*istate->cache
));
istate->initialized = 1;
if (istate->version == 4)
istate->initialized = 1;
if (istate->version == 4)