Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-10 17:14:09 +0300
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-10 17:14:09 +0300
commit12abcb36c871f4c97d7aed3d9bd55e5477888bb7 (patch)
treed526460c2d752fca87fb8735c5ce3dbc0d9caade /networking/libiproute
parent311c19a661fb8e8cc85d131c1b87a6b80a89ef7c (diff)
libiproute: fix buggy open check: s/if (fd)/if (fd >= 0)/
less: small optimization -15 bytes
Diffstat (limited to 'networking/libiproute')
-rw-r--r--networking/libiproute/ll_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c
index 3412dc763..2ed7fbbb3 100644
--- a/networking/libiproute/ll_map.c
+++ b/networking/libiproute/ll_map.c
@@ -172,7 +172,7 @@ int xll_name_to_index(const char *const name)
#endif
sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
- if (sock_fd) {
+ if (sock_fd >= 0) {
struct ifreq ifr;
int tmp;