projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4907a8
)
system-linux.c: fix sysctl setting
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 11 Jul 2012 18:22:42 +0000
(20:22 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 11 Jul 2012 18:22:42 +0000
(20:22 +0200)
The system_set_dev_sysctl() function erroneously used the value instead of the
device name to format the sysctl path, this change corrects that.
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index eb26d20187e2023c50231d9a0d9df189092c05b3..d2e3d0625f56f32e62fcf79917fffabab204cac3 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-154,7
+154,7
@@
static void system_set_sysctl(const char *path, const char *val)
static void system_set_dev_sysctl(const char *path, const char *device, const char *val)
{
- snprintf(dev_buf, sizeof(dev_buf), path,
val
);
+ snprintf(dev_buf, sizeof(dev_buf), path,
device
);
system_set_sysctl(dev_buf, val);
}