shared: fix pointer type in UNCONST

Thanks to vapier for noticing.
This commit is contained in:
Sam James 2023-04-20 05:04:08 +01:00 committed by Mike Frysinger
parent 36e4e04ba9
commit 09d405fb3e
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -28,7 +29,7 @@
#define ERRX fprintf (stderr, "out of memory\n"); exit (1)
#define UNCONST(a) ((void *)(unsigned long)(const void *)(a))
#define UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
#define RC_UNUSED __attribute__((__unused__))
#define RC_NORETURN __attribute__((__noreturn__))