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 /shell/shell.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 '')
| -rw-r--r-- | shell/shell.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/shell.c b/shell/shell.c index 26b4535..104e7e0 100644 --- a/shell/shell.c +++ b/shell/shell.c | |||
| @@ -360,7 +360,8 @@ gendata_exec(args_t *args) | |||
| 360 | { | 360 | { |
| 361 | int i; | 361 | int i; |
| 362 | FILE *file; | 362 | FILE *file; |
| 363 | char *buf, path[MAX_PATH_LENGTH], dataid[NISSY_SIZE_DATAID]; | 363 | char path[MAX_PATH_LENGTH], dataid[NISSY_SIZE_DATAID]; |
| 364 | unsigned char *buf; | ||
| 364 | int64_t ret, size; | 365 | int64_t ret, size; |
| 365 | size_t written; | 366 | size_t written; |
| 366 | 367 | ||
| @@ -427,7 +428,8 @@ solve_exec(args_t *args) | |||
| 427 | int i; | 428 | int i; |
| 428 | uint8_t nissflag; | 429 | uint8_t nissflag; |
| 429 | FILE *file; | 430 | FILE *file; |
| 430 | char *buf, solutions[SOLUTIONS_BUFFER_SIZE], path[MAX_PATH_LENGTH]; | 431 | char solutions[SOLUTIONS_BUFFER_SIZE], path[MAX_PATH_LENGTH]; |
| 432 | unsigned char *buf; | ||
| 431 | char dataid[NISSY_SIZE_DATAID]; | 433 | char dataid[NISSY_SIZE_DATAID]; |
| 432 | long long stats[NISSY_SIZE_SOLVE_STATS]; | 434 | long long stats[NISSY_SIZE_SOLVE_STATS]; |
| 433 | int64_t ret, gendata_ret, size; | 435 | int64_t ret, gendata_ret, size; |
