summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-20 23:10:01 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-20 23:10:01 +0200
commit268149290fcd8a52f377b21226990d3bf0e9c226 (patch)
tree65b57e4214386aa52602d62d133b9ec32efc44f4 /system-linux.c
parent4b1a0ddadc70fbce76844bf09af261296ef4fd9f (diff)
reduce stack usage
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/system-linux.c b/system-linux.c
index 44332a2..8b9189d 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -101,7 +101,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)
{
- char buf[256];
+ static char buf[256];
snprintf(buf, sizeof(buf), path, val);
system_set_sysctl(buf, val);
@@ -367,7 +367,7 @@ out:
*/
void system_if_clear_state(struct device *dev)
{
- char buf[256];
+ static char buf[256];
char *bridge;
if (dev->external)