From 45efd2585a00e3410991f33e7103ed66a1b328e7 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 29 Aug 2023 12:24:43 +0100 Subject: Use uint8_t instead of char --- src/assets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/assets.c') diff --git a/src/assets.c b/src/assets.c index cfeeb20..8c14a49 100644 --- a/src/assets.c +++ b/src/assets.c @@ -36,7 +36,7 @@ uint8_t ubox_assets_init(const char *dirname) return 1; } -uint8_t ubox_assets_read(const char *name, char **data, size_t *data_size) +uint8_t ubox_assets_read(const char *name, uint8_t **data, size_t *data_size) { char buff[256]; FILE *fd; @@ -50,7 +50,7 @@ uint8_t ubox_assets_read(const char *name, char **data, size_t *data_size) fseek(fd, 0, SEEK_END); *data_size = ftell(fd); - (*data) = (char *)calloc(*data_size, 1); + (*data) = (uint8_t *)calloc(*data_size, 1); if (!(*data)) goto error_close; -- cgit v1.2.3