From 08d35c7a59a182b9ef05d95ca3c583806b2ba924 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Apr 2014 11:44:09 +0200 Subject: [PATCH] interface-event: make eventnames static and const Signed-off-by: Felix Fietkau --- interface-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-event.c b/interface-event.c index 82c274d..1c8134f 100644 --- a/interface-event.c +++ b/interface-event.c @@ -30,7 +30,7 @@ static void task_complete(struct uloop_process *proc, int ret); static struct uloop_process task = { .cb = task_complete, }; -char *eventnames[] = {"ifdown", "ifup", "ifupdate"}; +static const char * const eventnames[] = {"ifdown", "ifup", "ifupdate"}; static void run_cmd(const char *ifname, const char *device, enum interface_event event, -- 2.25.1