Skip to content

Commit a22de54

Browse files
committed
Fix some uses of str[n]casecmp that should be pg_str[n]casecmp,
per Magnus.
1 parent 0b52204 commit a22de54

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.334 2006/07/27 13:20:24 momjian Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.335 2006/09/15 21:34:23 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2411,7 +2411,7 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
24112411
* at each component.
24122412
*/
24132413

2414-
if (strncasecmp(url, LDAP_URL, strlen(LDAP_URL)) != 0)
2414+
if (pg_strncasecmp(url, LDAP_URL, strlen(LDAP_URL)) != 0)
24152415
{
24162416
printfPQExpBuffer(errorMessage,
24172417
libpq_gettext("bad LDAP URL \"%s\": scheme must be ldap://\n"), purl);
@@ -2500,11 +2500,11 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
25002500
}
25012501

25022502
/* set scope */
2503-
if (strcasecmp(scopestr, "base") == 0)
2503+
if (pg_strcasecmp(scopestr, "base") == 0)
25042504
scope = LDAP_SCOPE_BASE;
2505-
else if (strcasecmp(scopestr, "one") == 0)
2505+
else if (pg_strcasecmp(scopestr, "one") == 0)
25062506
scope = LDAP_SCOPE_ONELEVEL;
2507-
else if (strcasecmp(scopestr, "sub") == 0)
2507+
else if (pg_strcasecmp(scopestr, "sub") == 0)
25082508
scope = LDAP_SCOPE_SUBTREE;
25092509
else
25102510
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy