aboutsummaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r--networking/ifconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index fc7798f2d..1b43a0825 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -37,6 +37,7 @@
37#include <string.h> /* strcmp and friends */ 37#include <string.h> /* strcmp and friends */
38#include <ctype.h> /* isdigit and friends */ 38#include <ctype.h> /* isdigit and friends */
39#include <stddef.h> /* offsetof */ 39#include <stddef.h> /* offsetof */
40#include <unistd.h>
40#include <netdb.h> 41#include <netdb.h>
41#include <sys/ioctl.h> 42#include <sys/ioctl.h>
42#include <net/if.h> 43#include <net/if.h>
@@ -558,6 +559,7 @@ int ifconfig_main(int argc, char **argv)
558 continue; 559 continue;
559 } /* end of while-loop */ 560 } /* end of while-loop */
560 561
562 if (CONFIG_FEATURE_CLEAN_UP) close(sockfd);
561 return goterr; 563 return goterr;
562} 564}
563 565