]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
use COPY_ARRAY for copying arrays
authorRené Scharfe <l.s.r@web.de>
Sat, 15 Jun 2019 18:36:35 +0000 (20:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Jun 2019 01:15:04 +0000 (18:15 -0700)
commit921d49be86bd44ca290c8db6cc6f419dac3ed442
tree73c8ec3613227772c56732a3d7da8e67e596e625
parent177fbab747da4f58cb2a8ce010b3515c86dd67c9
use COPY_ARRAY for copying arrays

Convert calls of memcpy(3) to use COPY_ARRAY, which shortens and
simplifies the code a bit.

Patch generated by Coccinelle and contrib/coccinelle/array.cocci.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
kwset.c
packfile.c
pretty.c