diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-21 14:33:01 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-21 14:44:07 +0200 |
| commit | 510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 (patch) | |
| tree | 58df7791242d9a4f52e80da93ad3af20ed5e3528 /test/090_tables_readwrite/tables_readwrite_tests.c | |
| parent | 1d9b8acfeece68c4f55d2499d8aed127f98a383c (diff) | |
| download | nissy-core-510a7471348788fccba6b7c4b9f7b7cc9aee6ba9.tar.gz nissy-core-510a7471348788fccba6b7c4b9f7b7cc9aee6ba9.zip | |
Always use unsigned char * for data buffers
Before this commit I was inconsistently using one of void *, char *
and uint8_t *.
Diffstat (limited to 'test/090_tables_readwrite/tables_readwrite_tests.c')
| -rw-r--r-- | test/090_tables_readwrite/tables_readwrite_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | bool readtableinfo(uint64_t, const char *, tableinfo_t *); | 3 | bool readtableinfo(uint64_t, const unsigned char *, tableinfo_t *); |
| 4 | bool writetableinfo(const tableinfo_t *, uint64_t, char *); | 4 | bool writetableinfo(const tableinfo_t *, uint64_t, unsigned char *); |
| 5 | 5 | ||
| 6 | uint64_t readn(void) { | 6 | uint64_t readn(void) { |
| 7 | char str[STRLENMAX]; | 7 | char str[STRLENMAX]; |
| @@ -66,7 +66,7 @@ void test_writeinfo(tableinfo_t info) { | |||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | void run(void) { | 68 | void run(void) { |
| 69 | char buf[INFOSIZE]; | 69 | unsigned char buf[INFOSIZE]; |
| 70 | tableinfo_t expected, actual; | 70 | tableinfo_t expected, actual; |
| 71 | 71 | ||
| 72 | expected = test_readinfo(); | 72 | expected = test_readinfo(); |
