projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf66bb
)
system-linux: cosmetic cleanup
author
Felix Fietkau
<nbd@nbd.name>
Fri, 4 Nov 2016 12:20:46 +0000
(13:20 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 4 Nov 2016 12:24:31 +0000
(13:24 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index a0389879c4d47c7a8ec8769b362aeb2cd1acb07f..67fa2b1b3b15421ca15372691316b140cb12dfa3 100644
(file)
--- 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;