From 70b416a1742e28b43cf82511277b57ff04affece Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 13 Oct 2007 16:43:07 +0200 Subject: Fix an uninitialized variable warning (This used to be commit d0f25bb89a2268c8f789dd362010f8b785489424) --- source3/lib/interfaces.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/interfaces.c b/source3/lib/interfaces.c index 20d91439f5..122101cdc9 100644 --- a/source3/lib/interfaces.c +++ b/source3/lib/interfaces.c @@ -549,10 +549,10 @@ static int iface_comp(struct iface_struct *i1, struct iface_struct *i2) s1 = (struct sockaddr_in *)&i1->netmask; s2 = (struct sockaddr_in *)&i2->netmask; - r = ntohl(s1->sin_addr.s_addr) - + return ntohl(s1->sin_addr.s_addr) - ntohl(s2->sin_addr.s_addr); } - return r; + return 0; } int get_interfaces(struct iface_struct *ifaces, int max_interfaces); -- cgit