summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-11-04 13:20:46 +0100
committerFelix Fietkau <nbd@nbd.name>2016-11-04 13:24:31 +0100
commitd51ce171c7588b3dbcfdfccfa8d2c5d5c9733e81 (patch)
tree8e733bc7ce535fe13e2b35c877fbbb70be06e0a8
parent6cf66bb0a02f3993394c0408c2865bfaf2756f21 (diff)
system-linux: cosmetic cleanup
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--system-linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index a038987..67fa2b1 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -2485,10 +2485,12 @@ int system_update_ipv6_mtu(struct device *dev, int mtu)
{
int ret = -1;
char buf[64];
+ int fd;
+
snprintf(buf, sizeof(buf), "/proc/sys/net/ipv6/conf/%s/mtu",
dev->ifname);
- int fd = open(buf, O_RDWR);
+ fd = open(buf, O_RDWR);
if (fd < 0)
return ret;