test: minor modernization
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Jul 2019 05:54:04 +0000 (07:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Jul 2019 22:17:45 +0000 (00:17 +0200)
commit2aa07538bad3efb54309ada63fdaa1273ffbd1a2
treeca75bd5f58aad388acc053941f54fa3f681ee2eb
parent67da2cc883fb261d2f9e5819df5646b2165196a8
test: minor modernization

Coverity was complaining that read() does not terminate the data. But
we did that termination earlier, so covirity is wrong (CID#1402306, CID#1402340).
Let's modernize the style a bit nevertheless.

(size_t) cast is needed to avoid the warning about comparison, iff
the value is not a constant.
src/test/test-copy.c
src/test/test-fileio.c