interface-event: make eventnames static and const
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Apr 2014 09:44:09 +0000 (11:44 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 Apr 2014 19:37:41 +0000 (21:37 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface-event.c

index 82c274d..1c8134f 100644 (file)
@@ -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,