diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-18 23:07:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-18 23:07:26 +0200 |
commit | 93f8a2e834eed69aff7ef3be8c2baba14bab0658 (patch) | |
tree | 347b5239f26d3b5f526fffcf7afe151e83124a61 /libc/inet/if_index.c | |
parent | 21730caa6647f645974e132ca8afec79b4eeab2b (diff) |
convert // comments to /**/; remove empty #if/#endif pairs. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libc/inet/if_index.c')
-rw-r--r-- | libc/inet/if_index.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/inet/if_index.c b/libc/inet/if_index.c index 36012975f..750a4649e 100644 --- a/libc/inet/if_index.c +++ b/libc/inet/if_index.c @@ -53,11 +53,11 @@ if_nametoindex(const char* ifname) strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); if (ioctl (fd, SIOCGIFINDEX, &ifr) < 0) { - // close never fails here, fd is just a unconnected socket - //int saved_errno = errno; + /* close never fails here, fd is just a unconnected socket. + *int saved_errno = errno; */ close(fd); - //if (saved_errno == EINVAL) - // __set_errno(ENOSYS); + /*if (saved_errno == EINVAL) + * __set_errno(ENOSYS); */ return 0; } |