Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita22de54

Browse files
committed
Fix some uses of str[n]casecmp that should be pg_str[n]casecmp,
per Magnus.
1 parent0b52204 commita22de54

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-
elseif (strcasecmp(scopestr,"one")==0)
2505+
elseif (pg_strcasecmp(scopestr,"one")==0)
25062506
scope=LDAP_SCOPE_ONELEVEL;
2507-
elseif (strcasecmp(scopestr,"sub")==0)
2507+
elseif (pg_strcasecmp(scopestr,"sub")==0)
25082508
scope=LDAP_SCOPE_SUBTREE;
25092509
else
25102510
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp