summaryrefslogtreecommitdiff
path: root/components/netspeeds.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/netspeeds.c')
-rw-r--r--components/netspeeds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/netspeeds.c b/components/netspeeds.c
index 18aa097..e61d982 100644
--- a/components/netspeeds.c
+++ b/components/netspeeds.c
@@ -75,7 +75,7 @@
oldrxbytes = rxbytes;
- if (getifaddrs(&ifal) == -1) {
+ if (getifaddrs(&ifal) < 0) {
warn("getifaddrs failed");
return NULL;
}
@@ -111,7 +111,7 @@
oldtxbytes = txbytes;
- if (getifaddrs(&ifal) == -1) {
+ if (getifaddrs(&ifal) < 0) {
warn("getifaddrs failed");
return NULL;
}