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
Dimitar Stoychev
OpenLDAP
Commits
e384faf9
Commit
e384faf9
authored
22 years ago
by
Hallvard Furuseth
Browse files
Options
Downloads
Patches
Plain Diff
Return 0 or 1 from is_entry_*(), to kill 'signed vs. unsigned' warnings.
parent
58bff46c
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
servers/slapd/oc.c
+2
-2
2 additions, 2 deletions
servers/slapd/oc.c
servers/slapd/proto-slap.h
+15
-10
15 additions, 10 deletions
servers/slapd/proto-slap.h
with
17 additions
and
12 deletions
servers/slapd/oc.c
+
2
−
2
View file @
e384faf9
...
...
@@ -75,7 +75,7 @@ int is_entry_objectclass(
if
(
set_flags
&&
(
e
->
e_ocflags
&
SLAP_OC__END
))
{
/* flags are set, use them */
return
e
->
e_ocflags
&
oc
->
soc_flags
&
SLAP_OC__MASK
;
return
(
e
->
e_ocflags
&
oc
->
soc_flags
&
SLAP_OC__MASK
)
!=
0
;
}
/*
...
...
@@ -114,7 +114,7 @@ int is_entry_objectclass(
/* mark flags as set */
e
->
e_ocflags
|=
SLAP_OC__END
;
return
e
->
e_ocflags
&
oc
->
soc_flags
&
SLAP_OC__MASK
;
return
(
e
->
e_ocflags
&
oc
->
soc_flags
&
SLAP_OC__MASK
)
!=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/proto-slap.h
+
15
−
10
View file @
e384faf9
...
...
@@ -679,20 +679,25 @@ LDAP_SLAPD_F (int) is_object_subclass LDAP_P((
LDAP_SLAPD_F
(
int
)
is_entry_objectclass
LDAP_P
((
Entry
*
,
ObjectClass
*
oc
,
int
set_flags
));
#define is_entry_alias(e) \
(((e)->e_ocflags & SLAP_OC__END) ? ((e)->e_ocflags & SLAP_OC_ALIAS) : \
is_entry_objectclass((e), slap_schema.si_oc_alias, 1))
(((e)->e_ocflags & SLAP_OC__END) \
? (((e)->e_ocflags & SLAP_OC_ALIAS) != 0) \
: is_entry_objectclass((e), slap_schema.si_oc_alias, 1))
#define is_entry_referral(e) \
(((e)->e_ocflags & SLAP_OC__END) ? ((e)->e_ocflags & SLAP_OC_REFERRAL) : \
is_entry_objectclass((e), slap_schema.si_oc_referral, 1))
(((e)->e_ocflags & SLAP_OC__END) \
? (((e)->e_ocflags & SLAP_OC_REFERRAL) != 0) \
: is_entry_objectclass((e), slap_schema.si_oc_referral, 1))
#define is_entry_subentry(e) \
(((e)->e_ocflags & SLAP_OC__END) ? ((e)->e_ocflags & SLAP_OC_SUBENTRY) : \
is_entry_objectclass((e), slap_schema.si_oc_subentry, 1))
(((e)->e_ocflags & SLAP_OC__END) \
? (((e)->e_ocflags & SLAP_OC_SUBENTRY) != 0) \
: is_entry_objectclass((e), slap_schema.si_oc_subentry, 1))
#define is_entry_collectiveAttributeSubentry(e) \
(((e)->e_ocflags & SLAP_OC__END) ? ((e)->e_ocflags & SLAP_OC_COLLECTIVEATTRIBUTESUBENTRY) : \
is_entry_objectclass((e), slap_schema.si_oc_collectiveAttributeSubentry, 1))
(((e)->e_ocflags & SLAP_OC__END) \
? (((e)->e_ocflags & SLAP_OC_COLLECTIVEATTRIBUTESUBENTRY) != 0) \
: is_entry_objectclass((e), slap_schema.si_oc_collectiveAttributeSubentry, 1))
#define is_entry_dynamicObject(e) \
(((e)->e_ocflags & SLAP_OC__END) ? ((e)->e_ocflags & SLAP_OC_DYNAMICOBJECT) : \
is_entry_objectclass((e), slap_schema.si_oc_dynamicObject, 1))
(((e)->e_ocflags & SLAP_OC__END) \
? (((e)->e_ocflags & SLAP_OC_DYNAMICOBJECT) != 0) \
: is_entry_objectclass((e), slap_schema.si_oc_dynamicObject, 1))
LDAP_SLAPD_F
(
int
)
oc_schema_info
(
Entry
*
e
);
...
...
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