projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f7d32a
)
interface-event: make eventnames static and const
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 23 Apr 2014 09:44:09 +0000
(11:44 +0200)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/interface-event.c
b/interface-event.c
index 82c274daf4b7c54da0397d5b38ada2082ac65e1d..1c8134f63421e363965a2f988458abdceba65989 100644
(file)
--- 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,