Browse Source

midx.c: convert FLEX_ALLOC_MEM to FLEX_ALLOC_STR

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Denton Liu 6 years ago committed by Junio C Hamano
parent
commit
577314caae
  1. 2
      midx.c

2
midx.c

@ -70,7 +70,7 @@ struct multi_pack_index *load_multi_pack_index(const char *object_dir, int local @@ -70,7 +70,7 @@ struct multi_pack_index *load_multi_pack_index(const char *object_dir, int local

midx_map = xmmap(NULL, midx_size, PROT_READ, MAP_PRIVATE, fd, 0);

FLEX_ALLOC_MEM(m, object_dir, object_dir, strlen(object_dir));
FLEX_ALLOC_STR(m, object_dir, object_dir);
m->fd = fd;
m->data = midx_map;
m->data_len = midx_size;

Loading…
Cancel
Save