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/121_coorddata_dr | |
| 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/121_coorddata_dr')
| -rw-r--r-- | test/121_coorddata_dr/coorddata_dr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/121_coorddata_dr/coorddata_dr.c b/test/121_coorddata_dr/coorddata_dr.c index 707d605..9432b4c 100644 --- a/test/121_coorddata_dr/coorddata_dr.c +++ b/test/121_coorddata_dr/coorddata_dr.c | |||
| @@ -5,15 +5,15 @@ | |||
| 5 | #define TGROUP UINT64_C(4278190335) | 5 | #define TGROUP UINT64_C(4278190335) |
| 6 | 6 | ||
| 7 | cube_t transform(cube_t, uint8_t); | 7 | cube_t transform(cube_t, uint8_t); |
| 8 | uint64_t coordinate_dr_coord(cube_t, const void *); | 8 | uint64_t coordinate_dr_coord(cube_t, const unsigned char *); |
| 9 | cube_t coordinate_dr_cube(uint64_t, const void *); | 9 | cube_t coordinate_dr_cube(uint64_t, const unsigned char *); |
| 10 | uint64_t coordinate_dr_gendata(void *); | 10 | uint64_t coordinate_dr_gendata(unsigned char *); |
| 11 | 11 | ||
| 12 | void run(void) { | 12 | void run(void) { |
| 13 | bool found; | 13 | bool found; |
| 14 | uint64_t t; | 14 | uint64_t t; |
| 15 | char str[STRLENMAX]; | 15 | char str[STRLENMAX]; |
| 16 | void *data; | 16 | unsigned char *data; |
| 17 | size_t size; | 17 | size_t size; |
| 18 | cube_t cube; | 18 | cube_t cube; |
| 19 | uint64_t coord, coord2; | 19 | uint64_t coord, coord2; |
