From: Volker Lendecke Date: Thu, 26 Mar 2020 10:15:28 +0000 (+0100) Subject: tdbtorture: Use ARRAY_DEL_ELEMENT() X-Git-Tag: ldb-2.2.0~1203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f71364bc2d61b17cd8495908c5b5250a36c3655c;p=thirdparty%2Fsamba.git tdbtorture: Use ARRAY_DEL_ELEMENT() Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Thu Mar 26 16:22:00 UTC 2020 on sn-devel-184 --- diff --git a/lib/tdb/tools/tdbtorture.c b/lib/tdb/tools/tdbtorture.c index 7d08d4f6775..1063f14f4cc 100644 --- a/lib/tdb/tools/tdbtorture.c +++ b/lib/tdb/tools/tdbtorture.c @@ -467,8 +467,7 @@ int main(int argc, char * const *argv) error_count++; } } - memmove(&pids[j], &pids[j+1], - (num_procs - j - 1)*sizeof(pids[0])); + ARRAY_DEL_ELEMENT(pids, j, num_procs); num_procs--; }