Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Christopher Ng
OpenLDAP
Commits
716523f1
Commit
716523f1
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Clean up namespace
parent
eab4a30a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/libldap/disptmpl.c
+15
-15
15 additions, 15 deletions
libraries/libldap/disptmpl.c
libraries/libldap/srchpref.c
+4
-4
4 additions, 4 deletions
libraries/libldap/srchpref.c
with
19 additions
and
19 deletions
libraries/libldap/disptmpl.c
+
15
−
15
View file @
716523f1
...
...
@@ -98,7 +98,7 @@ ldap_init_templates( char *file, struct ldap_disptmpl **tmpllistp )
long
rlen
,
len
;
int
rc
,
eof
;
*
tmpllistp
=
NULL
DISPTMPL
;
*
tmpllistp
=
NULL
;
if
((
fp
=
fopen
(
file
,
"r"
))
==
NULL
)
{
return
(
LDAP_TMPL_ERR_FILE
);
...
...
@@ -145,7 +145,7 @@ ldap_init_templates_buf( char *buf, long buflen,
char
**
toks
;
struct
ldap_disptmpl
*
prevtmpl
,
*
tmpl
;
*
tmpllistp
=
prevtmpl
=
NULL
DISPTMPL
;
*
tmpllistp
=
prevtmpl
=
NULL
;
if
(
next_line_tokens
(
&
buf
,
&
buflen
,
&
toks
)
!=
2
||
strcasecmp
(
toks
[
0
],
"version"
)
!=
0
)
{
...
...
@@ -159,8 +159,8 @@ ldap_init_templates_buf( char *buf, long buflen,
}
while
(
buflen
>
0
&&
(
rc
=
read_next_tmpl
(
&
buf
,
&
buflen
,
&
tmpl
,
version
))
==
0
&&
tmpl
!=
NULL
DISPTMPL
)
{
if
(
prevtmpl
==
NULL
DISPTMPL
)
{
version
))
==
0
&&
tmpl
!=
NULL
)
{
if
(
prevtmpl
==
NULL
)
{
*
tmpllistp
=
tmpl
;
}
else
{
prevtmpl
->
dt_next
=
tmpl
;
...
...
@@ -281,7 +281,7 @@ struct ldap_disptmpl *
ldap_next_disptmpl
(
struct
ldap_disptmpl
*
tmpllist
,
struct
ldap_disptmpl
*
tmpl
)
{
return
(
tmpl
==
NULL
DISPTMPL
?
tmpl
:
tmpl
->
dt_next
);
return
(
tmpl
==
NULL
?
tmpl
:
tmpl
->
dt_next
);
}
...
...
@@ -290,14 +290,14 @@ ldap_name2template( char *name, struct ldap_disptmpl *tmpllist )
{
struct
ldap_disptmpl
*
dtp
;
for
(
dtp
=
ldap_first_disptmpl
(
tmpllist
);
dtp
!=
NULL
DISPTMPL
;
for
(
dtp
=
ldap_first_disptmpl
(
tmpllist
);
dtp
!=
NULL
;
dtp
=
ldap_next_disptmpl
(
tmpllist
,
dtp
))
{
if
(
strcasecmp
(
name
,
dtp
->
dt_name
)
==
0
)
{
return
(
dtp
);
}
}
return
(
NULL
DISPTMPL
);
return
(
NULL
);
}
...
...
@@ -309,12 +309,12 @@ ldap_oc2template( char **oclist, struct ldap_disptmpl *tmpllist )
int
i
,
j
,
needcnt
,
matchcnt
;
if
(
tmpllist
==
NULL
||
oclist
==
NULL
||
oclist
[
0
]
==
NULL
)
{
return
(
NULL
DISPTMPL
);
return
(
NULL
);
}
for
(
dtp
=
ldap_first_disptmpl
(
tmpllist
);
dtp
!=
NULL
DISPTMPL
;
for
(
dtp
=
ldap_first_disptmpl
(
tmpllist
);
dtp
!=
NULL
;
dtp
=
ldap_next_disptmpl
(
tmpllist
,
dtp
))
{
for
(
oclp
=
dtp
->
dt_oclist
;
oclp
!=
NULL
OCLIST
;
for
(
oclp
=
dtp
->
dt_oclist
;
oclp
!=
NULL
;
oclp
=
oclp
->
oc_next
)
{
needcnt
=
matchcnt
=
0
;
for
(
i
=
0
;
oclp
->
oc_objclasses
[
i
]
!=
NULL
;
++
i
)
{
...
...
@@ -333,7 +333,7 @@ ldap_oc2template( char **oclist, struct ldap_disptmpl *tmpllist )
}
}
return
(
NULL
DISPTMPL
);
return
(
NULL
);
}
...
...
@@ -347,7 +347,7 @@ ldap_first_tmplrow( struct ldap_disptmpl *tmpl )
struct
ldap_tmplitem
*
ldap_next_tmplrow
(
struct
ldap_disptmpl
*
tmpl
,
struct
ldap_tmplitem
*
row
)
{
return
(
row
==
NULL
TMPLITEM
?
row
:
row
->
ti_next_in_col
);
return
(
row
==
NULL
?
row
:
row
->
ti_next_in_col
);
}
...
...
@@ -362,7 +362,7 @@ struct ldap_tmplitem *
ldap_next_tmplcol
(
struct
ldap_disptmpl
*
tmpl
,
struct
ldap_tmplitem
*
row
,
struct
ldap_tmplitem
*
col
)
{
return
(
col
==
NULL
TMPLITEM
?
col
:
col
->
ti_next_in_row
);
return
(
col
==
NULL
?
col
:
col
->
ti_next_in_row
);
}
...
...
@@ -397,10 +397,10 @@ ldap_tmplattrs( struct ldap_disptmpl *tmpl, char **includeattrs,
}
for
(
tirowp
=
ldap_first_tmplrow
(
tmpl
);
!
memerr
&&
tirowp
!=
NULL
TMPLITEM
;
!
memerr
&&
tirowp
!=
NULL
;
tirowp
=
ldap_next_tmplrow
(
tmpl
,
tirowp
))
{
for
(
ticolp
=
ldap_first_tmplcol
(
tmpl
,
tirowp
);
ticolp
!=
NULL
TMPLITEM
;
ticolp
!=
NULL
;
ticolp
=
ldap_next_tmplcol
(
tmpl
,
tirowp
,
ticolp
))
{
if
(
syntaxmask
!=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/srchpref.c
+
4
−
4
View file @
716523f1
...
...
@@ -105,7 +105,7 @@ ldap_init_searchprefs_buf( char *buf, long buflen,
char
**
toks
;
struct
ldap_searchobj
*
prevso
,
*
so
;
*
solistp
=
prevso
=
NULL
SEARCHOBJ
;
*
solistp
=
prevso
=
NULL
;
if
(
next_line_tokens
(
&
buf
,
&
buflen
,
&
toks
)
!=
2
||
strcasecmp
(
toks
[
0
],
"version"
)
!=
0
)
{
...
...
@@ -120,8 +120,8 @@ ldap_init_searchprefs_buf( char *buf, long buflen,
}
while
(
buflen
>
0
&&
(
rc
=
read_next_searchobj
(
&
buf
,
&
buflen
,
&
so
,
version
))
==
0
&&
so
!=
NULL
SEARCHOBJ
)
{
if
(
prevso
==
NULL
SEARCHOBJ
)
{
version
))
==
0
&&
so
!=
NULL
)
{
if
(
prevso
==
NULL
)
{
*
solistp
=
so
;
}
else
{
prevso
->
so_next
=
so
;
...
...
@@ -223,7 +223,7 @@ ldap_first_searchobj( struct ldap_searchobj *solist )
struct
ldap_searchobj
*
ldap_next_searchobj
(
struct
ldap_searchobj
*
solist
,
struct
ldap_searchobj
*
so
)
{
return
(
so
==
NULL
SEARCHOBJ
?
so
:
so
->
so_next
);
return
(
so
==
NULL
?
so
:
so
->
so_next
);
}
...
...
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