Code

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 a7b70c5875a6d3946964b5896013437da3afa437..04e30e1e19d627450c04ea283cef20a9b85a20bd 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)
        {