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 82c274daf4b7c54da0397d5b38ada2082ac65e1d..1c8134f63421e363965a2f988458abdceba65989 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,