summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-10-13 16:43:07 +0200
committerVolker Lendecke <vl@sernet.de>2007-10-13 21:44:58 +0200
commit70b416a1742e28b43cf82511277b57ff04affece (patch)
tree4bb60bc2731010b7005f2271fbc7ed9b26a19389 /source3/lib
parent3d89bad41f64906f42616b50170f3471003139f7 (diff)
downloadsamba-70b416a1742e28b43cf82511277b57ff04affece.tar.gz
samba-70b416a1742e28b43cf82511277b57ff04affece.tar.bz2
samba-70b416a1742e28b43cf82511277b57ff04affece.zip
Fix an uninitialized variable warning
(This used to be commit d0f25bb89a2268c8f789dd362010f8b785489424)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/interfaces.c4
1 files changed, 2 insertions, 2 deletions
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);