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)
}
-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);
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: