summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-02-27 19:48:23 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2019-02-27 22:16:10 +0100
commit41344e7f27dbc06537745fb7671cfb132a850d73 (patch)
treeb68374f0ea2f716830dbaaabafe4f1c0f66a6e19
parentcdeb55291176cfe8ea49d07f26ad7a5fcdf2a722 (diff)
fix const warning
-rw-r--r--nest/route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/route.h b/nest/route.h
index 8dfbb376..078bc865 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -605,7 +605,7 @@ ea_set_attr_ptr(ea_list **to, struct linpool *pool, uint id, uint flags, uint ty
{ ea_set_attr(to, pool, id, flags, type, (uintptr_t) val); }
static inline void
-ea_set_attr_data(ea_list **to, struct linpool *pool, uint id, uint flags, uint type, void *data, uint len)
+ea_set_attr_data(ea_list **to, struct linpool *pool, uint id, uint flags, uint type, const void *data, uint len)
{
struct adata *a = lp_alloc_adata(pool, len);
memcpy(a->data, data, len);