summaryrefslogtreecommitdiff
path: root/source3/smbd/lanman.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-09 18:58:36 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-09 18:59:16 +0100
commitbc8242a08e1bb9489cc8171b1ec02bd2518b1857 (patch)
tree4939c85dd1abda3563c58d4bf3ea1c382856d943 /source3/smbd/lanman.c
parent1686a5e7e7eb1b411b003cbbde5c0d28741c6d02 (diff)
downloadsamba-bc8242a08e1bb9489cc8171b1ec02bd2518b1857.tar.gz
samba-bc8242a08e1bb9489cc8171b1ec02bd2518b1857.tar.bz2
samba-bc8242a08e1bb9489cc8171b1ec02bd2518b1857.zip
s3:smbd: use StrCaseCmp() instead of strcasecmp
metze
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r--source3/smbd/lanman.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index f673970cec..eed0cd2fe6 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1353,8 +1353,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);
}
/****************************************************************************
@@ -1524,7 +1523,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;
@@ -1637,7 +1636,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;