summaryrefslogtreecommitdiff
path: root/networking/interface.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-09 18:26:52 +0000
committerDenis Vlasenko2007-02-09 18:26:52 +0000
commitad67a3925c78e7c9f8e61248f640c5cc7a5cf186 (patch)
treec510e5dfd98f81702d9d2a4d6d9bc249585928d6 /networking/interface.c
parentc8e9993514f3be99be4eea75878ccc1b6ac85cea (diff)
downloadbusybox-ad67a3925c78e7c9f8e61248f640c5cc7a5cf186.zip
busybox-ad67a3925c78e7c9f8e61248f640c5cc7a5cf186.tar.gz
remove unused #include,, improve code readability
Diffstat (limited to 'networking/interface.c')
-rw-r--r--networking/interface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c
index f3f37f9..c034712 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -1093,12 +1093,14 @@ static void ife_print(struct interface *ptr)
#define IPV6_ADDR_MAPPED 0x1000U
#define IPV6_ADDR_RESERVED 0x2000U /* reserved address space */
- if ((f = fopen(_PATH_PROCNET_IFINET6, "r")) != NULL) {
+ f = fopen(_PATH_PROCNET_IFINET6, "r");
+ if (f != NULL) {
while (fscanf
(f, "%4s%4s%4s%4s%4s%4s%4s%4s %02x %02x %02x %02x %20s\n",
addr6p[0], addr6p[1], addr6p[2], addr6p[3], addr6p[4],
addr6p[5], addr6p[6], addr6p[7], &if_idx, &plen, &scope,
- &dad_status, devname) != EOF) {
+ &dad_status, devname) != EOF
+ ) {
if (!strcmp(devname, ptr->name)) {
sprintf(addr6, "%s:%s:%s:%s:%s:%s:%s:%s",
addr6p[0], addr6p[1], addr6p[2], addr6p[3],