diff options
author | Volker Lendecke <vl@sernet.de> | 2007-10-13 16:43:07 +0200 |
---|---|---|
committer | Volker Lendecke <vl@sernet.de> | 2007-10-13 21:44:58 +0200 |
commit | 70b416a1742e28b43cf82511277b57ff04affece (patch) | |
tree | 4bb60bc2731010b7005f2271fbc7ed9b26a19389 /source3 | |
parent | 3d89bad41f64906f42616b50170f3471003139f7 (diff) | |
download | samba-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')
-rw-r--r-- | source3/lib/interfaces.c | 4 |
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); |