projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
system-linux: cosmetic cleanup
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index
a038987
..
67fa2b1
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;