diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-07-11 20:22:42 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-07-11 20:22:42 +0200 |
commit | d7ce353d5656690b993acbfe73001b96fa788c97 (patch) | |
tree | ddd41e19bc023117fac80b2f195aad101672b258 /system-linux.c | |
parent | b4907a8502f0dadda9cdab259e1c824e3522b5b7 (diff) |
system-linux.c: fix sysctl setting
The system_set_dev_sysctl() function erroneously used the value instead of the
device name to format the sysctl path, this change corrects that.
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c index eb26d20..d2e3d06 100644 --- 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); } |