Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
a487c805
Commit
a487c805
authored
15 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Replaced stricmp() usage with our portable strequal()
parent
1e9a946e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/ldap.c
+5
-5
5 additions, 5 deletions
lib/ldap.c
with
5 additions
and
5 deletions
lib/ldap.c
+
5
−
5
View file @
a487c805
...
...
@@ -488,15 +488,15 @@ static void _ldap_trace (const char *fmt, ...)
*/
static
int
str2scope
(
const
char
*
p
)
{
if
(
!
str
icmp
(
p
,
"one"
))
if
(
!
str
equal
(
p
,
"one"
))
return
LDAP_SCOPE_ONELEVEL
;
if
(
!
str
icmp
(
p
,
"onetree"
))
if
(
!
str
equal
(
p
,
"onetree"
))
return
LDAP_SCOPE_ONELEVEL
;
if
(
!
str
icmp
(
p
,
"base"
))
if
(
!
str
equal
(
p
,
"base"
))
return
LDAP_SCOPE_BASE
;
if
(
!
str
icmp
(
p
,
"sub"
))
if
(
!
str
equal
(
p
,
"sub"
))
return
LDAP_SCOPE_SUBTREE
;
if
(
!
str
icmp
(
p
,
"subtree"
))
if
(
!
str
equal
(
p
,
"subtree"
))
return
LDAP_SCOPE_SUBTREE
;
return
(
-
1
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment