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 /tools/expected_distributions.h | |
| 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 'tools/expected_distributions.h')
| -rw-r--r-- | tools/expected_distributions.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/expected_distributions.h b/tools/expected_distributions.h index 7f33335..12faf1d 100644 --- a/tools/expected_distributions.h +++ b/tools/expected_distributions.h | |||
| @@ -197,7 +197,7 @@ check_table(uint64_t *exp, tableinfo_t *info) | |||
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | static bool | 199 | static bool |
| 200 | check_cocsep(size_t data_size, const void *data) | 200 | check_cocsep(size_t data_size, const unsigned char *data) |
| 201 | { | 201 | { |
| 202 | tableinfo_t info; | 202 | tableinfo_t info; |
| 203 | 203 | ||
| @@ -219,7 +219,11 @@ unknown_h48(uint8_t h, uint8_t k) | |||
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | STATIC bool | 221 | STATIC bool |
| 222 | check_distribution(const char *solver, size_t data_size, const void *data) | 222 | check_distribution( |
| 223 | const char *solver, | ||
| 224 | size_t data_size, | ||
| 225 | const unsigned char *data | ||
| 226 | ) | ||
| 223 | { | 227 | { |
| 224 | const char *str; | 228 | const char *str; |
| 225 | tableinfo_t info = {0}; | 229 | tableinfo_t info = {0}; |
