git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0b52204)
Fix some uses of str[n]casecmp that should be pg_str[n]casecmp,
2006年9月15日 21:34:23 +0000 (21:34 +0000)
2006年9月15日 21:34:23 +0000 (21:34 +0000)
per Magnus.


diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 00235fb0badc0950e106feee66270c8620c6a240..f69539d74781a242b419f67fa19a7b02f1a8bea9 100644 (file)
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.334 2006年07月27日 13:20:24 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.335 2006年09月15日 21:34:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2411,7 +2411,7 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
* at each component.
*/
- if (strncasecmp(url, LDAP_URL, strlen(LDAP_URL)) != 0)
+ if (pg_strncasecmp(url, LDAP_URL, strlen(LDAP_URL)) != 0)
{
printfPQExpBuffer(errorMessage,
libpq_gettext("bad LDAP URL \"%s\": scheme must be ldap://\n"), purl);
@@ -2500,11 +2500,11 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
}
/* set scope */
- if (strcasecmp(scopestr, "base") == 0)
+ if (pg_strcasecmp(scopestr, "base") == 0)
scope = LDAP_SCOPE_BASE;
- else if (strcasecmp(scopestr, "one") == 0)
+ else if (pg_strcasecmp(scopestr, "one") == 0)
scope = LDAP_SCOPE_ONELEVEL;
- else if (strcasecmp(scopestr, "sub") == 0)
+ else if (pg_strcasecmp(scopestr, "sub") == 0)
scope = LDAP_SCOPE_SUBTREE;
else
{
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /