From 86034e56cbf7f4a6563ce99a19b2f79db5b3b09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20B=C3=A9rub=C3=A9?= Date: Fri, 24 May 2024 12:25:00 -0400 Subject: [PATCH] (Continued) --- src/hal/support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hal/support.c b/src/hal/support.c index bb4b2e4..c50a2df 100644 --- a/src/hal/support.c +++ b/src/hal/support.c @@ -1,6 +1,6 @@ #include "support.h" -extern __real_mmap(); +extern void* __real_mmap(); void *isp_thread = NULL; void *venc_thread = NULL; @@ -34,7 +34,7 @@ bool hal_registry(unsigned int addr, unsigned int *data, hal_register_op op) { volatile char *mapped_area; if (offset != loaded_offset) { - mapped_area = (void*)__real_mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, offset); + mapped_area = __real_mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, offset); if (mapped_area == MAP_FAILED) { fprintf(stderr, "hal_registry mmap error: %s (%d)\n", strerror(errno), errno);