From: Florian Forster Date: Mon, 22 Jan 2007 21:52:49 +0000 (+0100) Subject: traffic plugin: Fix the plugin to work under Mac OS X. X-Git-Tag: collectd-4.0.0~217 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c36e2d0e3ee27c5df7a9abc5621482352e6ebd46;p=collectd.git traffic plugin: Fix the plugin to work under Mac OS X. --- diff --git a/src/traffic.c b/src/traffic.c index a7b70c58..04e30e1e 100644 --- a/src/traffic.c +++ b/src/traffic.c @@ -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) {