s3:smbd: use StrCaseCmp() instead of strcasecmp
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Feb 2010 17:58:36 +0000 (18:58 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Feb 2010 10:28:53 +0000 (11:28 +0100)
metze
(cherry picked from commit bc8242a08e1bb9489cc8171b1ec02bd2518b1857)

source3/smbd/lanman.c

index 5e0123509138c31ed0018a55130dd4cb444f0a87..4e7c9456c9eaaed0e0c2fd92e879167aebd1bbc5 100644 (file)
@@ -1355,8 +1355,7 @@ static int fill_srv_info(struct srv_info_struct *service,
 
 static int srv_comp(struct srv_info_struct *s1,struct srv_info_struct *s2)
 {
-#undef strcasecmp
-       return strcasecmp(s1->name,s2->name);
+       return StrCaseCmp(s1->name,s2->name);
 }
 
 /****************************************************************************
@@ -1526,7 +1525,7 @@ static int srv_name_match(const char *n1, const char *n2)
         *  the server will return a list of servers that exist on
         *  the network greater than or equal to the FirstNameToReturn.
         */
-       int ret = strcasecmp(n1, n2);
+       int ret = StrCaseCmp(n1, n2);
 
        if (ret <= 0) {
                return 0;
@@ -1639,7 +1638,7 @@ static bool api_RNetServerEnum3(connection_struct *conn, uint16 vuid,
                         */
                        for (;first > 0;) {
                                int ret;
-                               ret = strcasecmp(first_name,
+                               ret = StrCaseCmp(first_name,
                                                 servers[first-1].name);
                                if (ret > 0) {
                                        break;