From 510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 21 Apr 2025 14:33:01 +0200 Subject: Always use unsigned char * for data buffers Before this commit I was inconsistently using one of void *, char * and uint8_t *. --- shell/shell.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shell') 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) { int i; FILE *file; - char *buf, path[MAX_PATH_LENGTH], dataid[NISSY_SIZE_DATAID]; + char path[MAX_PATH_LENGTH], dataid[NISSY_SIZE_DATAID]; + unsigned char *buf; int64_t ret, size; size_t written; @@ -427,7 +428,8 @@ solve_exec(args_t *args) int i; uint8_t nissflag; FILE *file; - char *buf, solutions[SOLUTIONS_BUFFER_SIZE], path[MAX_PATH_LENGTH]; + char solutions[SOLUTIONS_BUFFER_SIZE], path[MAX_PATH_LENGTH]; + unsigned char *buf; char dataid[NISSY_SIZE_DATAID]; long long stats[NISSY_SIZE_SOLVE_STATS]; int64_t ret, gendata_ret, size; -- cgit v1.3