summaryrefslogtreecommitdiff
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2016-10-16 12:06:02 +0200
committerJunio C Hamano <gitster@pobox.com>2016-10-17 14:42:56 -0700
commit0ac52a38e8008fa5bb243e150031681420c639fa (patch)
treee0002e605c44b9316eed9fdbf8074db83700f72e /builtin/pack-objects.c
parente9451782cfbe9fc9105bf63228bca3e2265af8f8 (diff)
downloadgit-jk/tighten-alloc.tar.gz
inline xalloc_flex() into FLEXPTR_ALLOC_MEMjk/tighten-alloc
Allocate and copy directly in FLEXPTR_ALLOC_MEM and remove the now unused helper function xalloc_flex(). The resulting code is shorter and the offset arithmetic is a bit simpler. Suggested-by: Jeff King <peff@peff.net> Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-objects.c')
0 files changed, 0 insertions, 0 deletions