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.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=08d35c7a59a182b9ef05d95ca3c583806b2ba924;hp=2f7d32a6371c97716578b6a6d910df673d1db1f9 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,