1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tdbtorture: Use ARRAY_DEL_ELEMENT()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Mar 26 16:22:00 UTC 2020 on sn-devel-184
This commit is contained in:
Volker Lendecke 2020-03-26 11:15:28 +01:00 committed by Ralph Boehme
parent 130502af0b
commit f71364bc2d

View File

@ -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--;
}