diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-23 11:44:09 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-26 21:37:41 +0200 |
commit | 08d35c7a59a182b9ef05d95ca3c583806b2ba924 (patch) | |
tree | 5ac77a6e71047bcc9a96578c276ae3481af5d8ec /interface-event.c | |
parent | 2f7d32a6371c97716578b6a6d910df673d1db1f9 (diff) |
interface-event: make eventnames static and const
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'interface-event.c')
-rw-r--r-- | interface-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |