diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dfnet/gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/dfnet/gui.c b/plugins/dfnet/gui.c index 6425c9e5..577c6d7d 100644 --- a/plugins/dfnet/gui.c +++ b/plugins/dfnet/gui.c @@ -56,7 +56,7 @@ void sockGetIP(char *IPAddress) { if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) { ifc.ifc_len = sizeof(buf); ifc.ifc_buf = (caddr_t)buf; - if (!ioctl (fd, SIOCGIFCONF, (char *)&ifc)) { + if (!ioctl(fd, SIOCGIFCONF, (char *)&ifc)) { intrface = ifc.ifc_len / sizeof(struct ifreq); while (intrface-- > 0) { if (!(ioctl(fd, SIOCGIFADDR, (char *)&buf[intrface]))) { @@ -64,8 +64,8 @@ void sockGetIP(char *IPAddress) { strcpy(IPAddress, inet_ntoa(addr.sin_addr)); break; } - } - } + } + } close(fd); } } |
