diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-10 19:49:48 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-02-24 16:25:10 +0100 |
commit | 02f866afccc37ddc7ad4f8bd3ea201d86a94763f (patch) | |
tree | c521d189d19bc48099b0540353f9f36847b61dd9 | |
parent | 0d86cb0fd92fc30541bc586cbb9098eb39dbfee6 (diff) | |
download | samba-02f866afccc37ddc7ad4f8bd3ea201d86a94763f.tar.gz samba-02f866afccc37ddc7ad4f8bd3ea201d86a94763f.tar.xz samba-02f866afccc37ddc7ad4f8bd3ea201d86a94763f.zip |
s3:smbd: Fix really ugly bool vs. int bug!!!
A comparison function for qsort needs to return an 'int'!
Otherwise you'll get random results depending on the compiler
and the architecture...
metze
(cherry picked from commit 1686a5e7e7eb1b411b003cbbde5c0d28741c6d02)
(cherry picked from commit 5d4d547b901986cff378f640e9e22931d77c61b8)
-rw-r--r-- | source/smbd/lanman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c index 5fb05de9f19..bc1cb953f10 100644 --- a/source/smbd/lanman.c +++ b/source/smbd/lanman.c @@ -1352,7 +1352,7 @@ static int fill_srv_info(struct srv_info_struct *service, } -static bool srv_comp(struct srv_info_struct *s1,struct srv_info_struct *s2) +static int srv_comp(struct srv_info_struct *s1,struct srv_info_struct *s2) { return(strcmp(s1->name,s2->name)); } |