wldap32: Use BOOL type where appropriate.

This commit is contained in:
Frédéric Delanoy 2013-10-01 23:33:52 +02:00 committed by Alexandre Julliard
parent 0ab0384047
commit 8610acde5c
1 changed files with 5 additions and 6 deletions

View File

@ -113,13 +113,12 @@ oom:
}
/* Determine if a URL starts with a known LDAP scheme */
static int has_ldap_scheme( char *url )
static BOOL has_ldap_scheme( char *url )
{
if (!strncasecmp( url, "ldap://", 7 ) ||
!strncasecmp( url, "ldaps://", 8 ) ||
!strncasecmp( url, "ldapi://", 8 ) ||
!strncasecmp( url, "cldap://", 8 )) return 1;
return 0;
return !strncasecmp( url, "ldap://", 7 ) ||
!strncasecmp( url, "ldaps://", 8 ) ||
!strncasecmp( url, "ldapi://", 8 ) ||
!strncasecmp( url, "cldap://", 8 );
}
/* Flatten an array of hostnames into a space separated string of URLs.