selftests/nolibc: use correct return type for read() and write()
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 3 Aug 2023 07:28:55 +0000 (09:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 03:17:07 +0000 (05:17 +0200)
commit37266a9ec7f5a3144c2070baeea2628c30ef07e5
treedf3b056af84056c79322736c4805a6792157f322
parent711f91fdec714d6307f1fa044fb74d0a742b1494
selftests/nolibc: use correct return type for read() and write()

Avoid truncating values before comparing them.

As printf in nolibc doesn't support ssize_t add casts to int for
printing.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c