From 5c3b332f2996a8d536f05247ae69e305b4e0f29f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 22 Oct 2010 20:47:33 +0200 Subject: src: add const qualifiers Signed-off-by: Jan Engelhardt --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/callback.c') diff --git a/src/callback.c b/src/callback.c index e1599ff..f5a6112 100644 --- a/src/callback.c +++ b/src/callback.c @@ -37,7 +37,7 @@ static int mnl_cb_stop(const struct nlmsghdr *nlh, void *data) return MNL_CB_STOP; } -static mnl_cb_t default_cb_array[NLMSG_MIN_TYPE] = { +static const mnl_cb_t default_cb_array[NLMSG_MIN_TYPE] = { [NLMSG_NOOP] = mnl_cb_noop, [NLMSG_ERROR] = mnl_cb_error, [NLMSG_DONE] = mnl_cb_stop, -- cgit v1.2.3