traffic plugin: Fix the plugin to work under Mac OS X.
authorFlorian Forster <octo@crystal.wlan.home.verplant.org>
Mon, 22 Jan 2007 21:52:49 +0000 (22:52 +0100)
committerFlorian Forster <octo@crystal.wlan.home.verplant.org>
Mon, 22 Jan 2007 21:52:49 +0000 (22:52 +0100)
src/traffic.c

index a7b70c5..04e30e1 100644 (file)
@@ -272,7 +272,7 @@ static int traffic_read (void)
        struct IFA_DATA *if_data;
 
        if (getifaddrs (&if_list) != 0)
-               return;
+               return (-1);
 
        for (if_ptr = if_list; if_ptr != NULL; if_ptr = if_ptr->ifa_next)
        {