From c36e2d0e3ee27c5df7a9abc5621482352e6ebd46 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 22 Jan 2007 22:52:49 +0100 Subject: [PATCH] traffic plugin: Fix the plugin to work under Mac OS X. --- src/traffic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2