Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
James Lowden
OpenLDAP
Commits
bccbcd19
Commit
bccbcd19
authored
12 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Silence stupid warnings
parent
bbb27cde
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/liblmdb/midl.c
+4
-4
4 additions, 4 deletions
libraries/liblmdb/midl.c
libraries/liblmdb/midl.h
+1
-1
1 addition, 1 deletion
libraries/liblmdb/midl.h
with
5 additions
and
5 deletions
libraries/liblmdb/midl.c
+
4
−
4
View file @
bccbcd19
...
...
@@ -117,7 +117,7 @@ int mdb_midl_insert( MDB_IDL ids, MDB_ID id )
}
#endif
MDB_IDL
mdb_midl_alloc
()
MDB_IDL
mdb_midl_alloc
(
void
)
{
MDB_IDL
ids
=
malloc
((
MDB_IDL_UM_MAX
+
1
)
*
sizeof
(
MDB_ID
));
*
ids
++
=
MDB_IDL_UM_MAX
;
...
...
@@ -192,7 +192,7 @@ mdb_midl_sort( MDB_IDL ids )
int
i
,
j
,
k
,
l
,
ir
,
jstack
;
MDB_ID
a
,
itmp
;
ir
=
ids
[
0
];
ir
=
(
int
)
ids
[
0
];
l
=
1
;
jstack
=
0
;
for
(;;)
{
...
...
@@ -255,7 +255,7 @@ unsigned mdb_mid2l_search( MDB_ID2L ids, MDB_ID id )
unsigned
base
=
0
;
unsigned
cursor
=
1
;
int
val
=
0
;
unsigned
n
=
ids
[
0
].
mid
;
unsigned
n
=
(
unsigned
)
ids
[
0
].
mid
;
while
(
0
<
n
)
{
unsigned
pivot
=
n
>>
1
;
...
...
@@ -304,7 +304,7 @@ int mdb_mid2l_insert( MDB_ID2L ids, MDB_ID2 *id )
}
else
{
/* insert id */
ids
[
0
].
mid
++
;
for
(
i
=
ids
[
0
].
mid
;
i
>
x
;
i
--
)
for
(
i
=
(
unsigned
)
ids
[
0
].
mid
;
i
>
x
;
i
--
)
ids
[
i
]
=
ids
[
i
-
1
];
ids
[
x
]
=
*
id
;
}
...
...
This diff is collapsed.
Click to expand it.
libraries/liblmdb/midl.h
+
1
−
1
View file @
bccbcd19
...
...
@@ -118,7 +118,7 @@ int mdb_midl_insert( MDB_IDL ids, MDB_ID id );
* Allocates memory for an IDL of a default size.
* @return IDL on success, NULL on failure.
*/
MDB_IDL
mdb_midl_alloc
();
MDB_IDL
mdb_midl_alloc
(
void
);
/** Free an IDL.
* @param[in] ids The IDL to free.
...
...
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