From 510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 21 Apr 2025 14:33:01 +0200 Subject: Always use unsigned char * for data buffers Before this commit I was inconsistently using one of void *, char * and uint8_t *. --- test/090_tables_readwrite/tables_readwrite_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/090_tables_readwrite/tables_readwrite_tests.c') diff --git a/test/090_tables_readwrite/tables_readwrite_tests.c b/test/090_tables_readwrite/tables_readwrite_tests.c index 01c1172..3306dd6 100644 --- a/test/090_tables_readwrite/tables_readwrite_tests.c +++ b/test/090_tables_readwrite/tables_readwrite_tests.c @@ -1,7 +1,7 @@ #include "../test.h" -bool readtableinfo(uint64_t, const char *, tableinfo_t *); -bool writetableinfo(const tableinfo_t *, uint64_t, char *); +bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); +bool writetableinfo(const tableinfo_t *, uint64_t, unsigned char *); uint64_t readn(void) { char str[STRLENMAX]; @@ -66,7 +66,7 @@ void test_writeinfo(tableinfo_t info) { } void run(void) { - char buf[INFOSIZE]; + unsigned char buf[INFOSIZE]; tableinfo_t expected, actual; expected = test_readinfo(); -- cgit v1.3