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/112_gendata_h48short | |
| 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/112_gendata_h48short')
| -rw-r--r-- | test/112_gendata_h48short/gendata_h48short_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/112_gendata_h48short/gendata_h48short_tests.c b/test/112_gendata_h48short/gendata_h48short_tests.c index 2ed42c1..0de9408 100644 --- a/test/112_gendata_h48short/gendata_h48short_tests.c +++ b/test/112_gendata_h48short/gendata_h48short_tests.c | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | void h48map_create(h48map_t [static 1], uint64_t, uint64_t); | 5 | void h48map_create(h48map_t [static 1], uint64_t, uint64_t); |
| 6 | void h48map_destroy(h48map_t [static 1]); | 6 | void h48map_destroy(h48map_t [static 1]); |
| 7 | kvpair_t h48map_nextkvpair(h48map_t [static 1], uint64_t [static 1]); | 7 | kvpair_t h48map_nextkvpair(h48map_t [static 1], uint64_t [static 1]); |
| 8 | size_t gendata_cocsep(void *, uint64_t *, cube_t *); | 8 | size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); |
| 9 | uint64_t gendata_h48short(gendata_h48short_arg_t [static 1]); | 9 | uint64_t gendata_h48short(gendata_h48short_arg_t [static 1]); |
| 10 | 10 | ||
| 11 | char str[STRLENMAX]; | 11 | char str[STRLENMAX]; |
| @@ -25,7 +25,7 @@ uint64_t readl(void) { | |||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | void run(void) { | 27 | void run(void) { |
| 28 | char buf[2000000]; | 28 | unsigned char buf[2000000]; |
| 29 | h48map_t map; | 29 | h48map_t map; |
| 30 | uint64_t i, j, capacity, randomizer, selfsim[COCSEP_CLASSES]; | 30 | uint64_t i, j, capacity, randomizer, selfsim[COCSEP_CLASSES]; |
| 31 | kvpair_t kv, b[MAXPOS]; | 31 | kvpair_t kv, b[MAXPOS]; |
