From: Jo-Philipp Wich Date: Wed, 11 Jul 2012 18:22:42 +0000 (+0200) Subject: system-linux.c: fix sysctl setting X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d7ce353d5656690b993acbfe73001b96fa788c97;p=project%2Fnetifd.git 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. --- 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); }