diff options
author | René Scharfe <l.s.r@web.de> | 2019-06-15 21:36:35 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-18 04:15:04 +0300 |
commit | 921d49be86bd44ca290c8db6cc6f419dac3ed442 (patch) | |
tree | 73c8ec3613227772c56732a3d7da8e67e596e625 /kwset.c | |
parent | 177fbab747da4f58cb2a8ce010b3515c86dd67c9 (diff) |
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>
Diffstat (limited to 'kwset.c')
-rw-r--r-- | kwset.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -475,7 +475,7 @@ kwsprep (kwset_t kws) for (i = 0; i < NCHAR; ++i) kwset->next[i] = next[U(trans[i])]; else - memcpy(kwset->next, next, NCHAR * sizeof(struct trie *)); + COPY_ARRAY(kwset->next, next, NCHAR); } /* Fix things up for any translation table. */ |