From: Felix Fietkau Date: Wed, 23 Apr 2014 09:44:09 +0000 (+0200) Subject: interface-event: make eventnames static and const X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=08d35c7a59a182b9ef05d95ca3c583806b2ba924;p=project%2Fnetifd.git interface-event: make eventnames static and const Signed-off-by: Felix Fietkau --- 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,