git.samba.org
/
jpeach
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
556c337
)
Fix an uninitialized variable warning
author
Volker Lendecke
<vl@sernet.de>
Sat, 13 Oct 2007 14:43:07 +0000
(16:43 +0200)
committer
Volker Lendecke
<vl@sernet.de>
Sat, 13 Oct 2007 19:44:58 +0000
(21:44 +0200)
source/lib/interfaces.c
patch
|
blob
|
history
diff --git
a/source/lib/interfaces.c
b/source/lib/interfaces.c
index 20d91439f598367f8a7bcb467d2b469982864673..122101cdc996abc7131248a24ec31e2988f9849a 100644
(file)
--- a/
source/lib/interfaces.c
+++ b/
source/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) -
+ r
eturn
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);