summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-09 18:54:41 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-09 18:59:15 +0100
commit1686a5e7e7eb1b411b003cbbde5c0d28741c6d02 (patch)
treed7859e774147a8af9d0bbca9123f91ca78124d4f
parent45cbf49477b963bd39a57bac0682f36acbc9f6b3 (diff)
downloadsamba-1686a5e7e7eb1b411b003cbbde5c0d28741c6d02.tar.gz
samba-1686a5e7e7eb1b411b003cbbde5c0d28741c6d02.tar.bz2
samba-1686a5e7e7eb1b411b003cbbde5c0d28741c6d02.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
-rw-r--r--source3/smbd/lanman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 721883f775..f673970cec 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1351,7 +1351,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)
{
#undef strcasecmp
return strcasecmp(s1->name,s2->name);
@@ -1515,7 +1515,7 @@ static bool api_RNetServerEnum2(connection_struct *conn, uint16 vuid,
return True;
}
-static bool srv_name_match(const char *n1, const char *n2)
+static int srv_name_match(const char *n1, const char *n2)
{
/*
* [MS-RAP] footnote <88> for Section 3.2.5.15 says: