mirror of
https://github.com/git/git.git
synced 2024-09-26 15:01:19 +02:00
cache.h: rename cache_def_free to cache_def_clear
Rename cache_def_free to cache_def_clear as it doesn't free the struct cache_def, but just clears its content. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e7c7305300
commit
2a60839150
2
cache.h
2
cache.h
@ -1074,7 +1074,7 @@ struct cache_def {
|
|||||||
int prefix_len_stat_func;
|
int prefix_len_stat_func;
|
||||||
};
|
};
|
||||||
#define CACHE_DEF_INIT { STRBUF_INIT, 0, 0, 0 }
|
#define CACHE_DEF_INIT { STRBUF_INIT, 0, 0, 0 }
|
||||||
static inline void cache_def_free(struct cache_def *cache)
|
static inline void cache_def_clear(struct cache_def *cache)
|
||||||
{
|
{
|
||||||
strbuf_release(&cache->path);
|
strbuf_release(&cache->path);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ static void *preload_thread(void *_data)
|
|||||||
continue;
|
continue;
|
||||||
ce_mark_uptodate(ce);
|
ce_mark_uptodate(ce);
|
||||||
} while (--nr > 0);
|
} while (--nr > 0);
|
||||||
cache_def_free(&cache);
|
cache_def_clear(&cache);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user