From f69552b1f85f08e1ae3651f2bc1810aa2f5c1af7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 5 Sep 2011 06:58:55 +0200 Subject: [PATCH 1/1] constify --- config.c | 2 +- config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index 31ebb8d..b184165 100644 --- a/config.c +++ b/config.c @@ -140,7 +140,7 @@ config_parse_bridge_interface(struct uci_section *s) } void -config_set_state(struct config_state *state, struct blob_attr *attr) +config_set_state(struct config_state *state, const struct blob_attr *attr) { state->data = malloc(blob_pad_len(attr)); if (!state->data) diff --git a/config.h b/config.h index 49a81e4..22a562f 100644 --- a/config.h +++ b/config.h @@ -28,7 +28,7 @@ struct config_state { unsigned int version; }; -void config_set_state(struct config_state *state, struct blob_attr *attr); +void config_set_state(struct config_state *state, const struct blob_attr *attr); #endif -- 2.11.0