add missing const to src/adt.h

Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
Sven Peter 2021-01-15 18:11:56 +01:00 committed by Hector Martin
parent 4c4850935f
commit 3268aabb91

View file

@ -75,8 +75,8 @@ const void *adt_getprop(const void *adt, int nodeoffset, const char *name,
int *lenp);
const void *adt_getprop_length(const void *adt, int nodeoffset,
const char *name, int len);
int adt_getprop_copy(const void *adt, int nodeoffset, const char *name,
void *out, int len);
const int adt_getprop_copy(const void *adt, int nodeoffset, const char *name,
void *out, int len);
#define ADT_GETPROP(adt, nodeoffset, name, val) \
adt_getprop_copy(adt, nodeoffset, name, (val), sizeof(*(val)))