Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
ef7f5f5e
Commit
ef7f5f5e
authored
Sep 18, 2011
by
Hallvard Furuseth
Browse files
Cleanup ISO C compatibility for recent commits
parent
79f4f3c0
Changes
8
Hide whitespace changes
Inline
Side-by-side
libraries/liblber/debug.c
View file @
ef7f5f5e
...
...
@@ -62,7 +62,7 @@ void (lutil_debug)( int debug, int level, const char *fmt, ... )
}
#endif
sprintf
(
buffer
,
"%08x "
,
time
(
0L
));
sprintf
(
buffer
,
"%08x "
,
(
unsigned
)
time
(
0L
));
va_start
(
vl
,
fmt
);
vsnprintf
(
buffer
+
9
,
sizeof
(
buffer
)
-
9
,
fmt
,
vl
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
'\0'
;
...
...
servers/slapd/back-mdb/bind.c
View file @
ef7f5f5e
...
...
@@ -32,7 +32,7 @@ mdb_bind( Operation *op, SlapReply *rs )
AttributeDescription
*
password
=
slap_schema
.
si_ad_userPassword
;
MDB_txn
*
rtxn
;
mdb_op_info
opinfo
=
{
0
},
*
moi
=
&
opinfo
;
mdb_op_info
opinfo
=
{
{{
0
}}
},
*
moi
=
&
opinfo
;
Debug
(
LDAP_DEBUG_ARGS
,
"==> "
LDAP_XSTRING
(
mdb_bind
)
": dn: %s
\n
"
,
...
...
servers/slapd/back-mdb/compare.c
View file @
ef7f5f5e
...
...
@@ -29,7 +29,7 @@ mdb_compare( Operation *op, SlapReply *rs )
int
manageDSAit
=
get_manageDSAit
(
op
);
MDB_txn
*
rtxn
;
mdb_op_info
opinfo
=
{
0
},
*
moi
=
&
opinfo
;
mdb_op_info
opinfo
=
{
{{
0
}}
},
*
moi
=
&
opinfo
;
rs
->
sr_err
=
mdb_opinfo_get
(
op
,
mdb
,
1
,
&
moi
);
switch
(
rs
->
sr_err
)
{
...
...
servers/slapd/back-mdb/config.c
View file @
ef7f5f5e
...
...
@@ -38,7 +38,7 @@ enum {
MDB_MAXREADERS
,
MDB_MAXSIZE
,
MDB_MODE
,
MDB_SSTACK
,
MDB_SSTACK
};
static
ConfigTable
mdbcfg
[]
=
{
...
...
servers/slapd/back-mdb/operational.c
View file @
ef7f5f5e
...
...
@@ -36,7 +36,7 @@ mdb_hasSubordinates(
{
struct
mdb_info
*
mdb
=
(
struct
mdb_info
*
)
op
->
o_bd
->
be_private
;
MDB_txn
*
rtxn
;
mdb_op_info
opinfo
=
{
0
},
*
moi
=
&
opinfo
;
mdb_op_info
opinfo
=
{
{{
0
}}
},
*
moi
=
&
opinfo
;
int
rc
;
assert
(
e
!=
NULL
);
...
...
servers/slapd/back-mdb/search.c
View file @
ef7f5f5e
...
...
@@ -294,7 +294,7 @@ mdb_search( Operation *op, SlapReply *rs )
IdScopes
isc
;
MDB_cursor
*
mci
;
mdb_op_info
opinfo
=
{
0
},
*
moi
=
&
opinfo
;
mdb_op_info
opinfo
=
{
{{
0
}}
},
*
moi
=
&
opinfo
;
MDB_txn
*
ltid
=
NULL
;
Debug
(
LDAP_DEBUG_TRACE
,
"=> "
LDAP_XSTRING
(
mdb_search
)
"
\n
"
,
0
,
0
,
0
);
...
...
servers/slapd/overlays/pcache.c
View file @
ef7f5f5e
...
...
@@ -2908,9 +2908,9 @@ pcache_op_bind(
/* OK, just bind locally */
if
(
bi
.
bi_flags
&
BI_HASHED
)
{
int
delete
=
0
;
BackendDB
*
be
=
op
->
o_bd
;
op
->
o_bd
=
&
cm
->
db
;
int
delete
=
0
;
Debug
(
pcache_debug
,
"pcache_op_bind: CACHED BIND for %s
\n
"
,
op
->
o_req_dn
.
bv_val
,
0
,
0
);
...
...
servers/slapd/syncrepl.c
View file @
ef7f5f5e
...
...
@@ -2077,8 +2077,12 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
Modifications
*
ml
;
int
size
,
rc
;
SlapReply
rs1
=
{
0
};
resolve_ctxt
rx
=
{
si
,
newlist
};
slap_callback
cb
=
{
NULL
,
syncrepl_resolve_cb
,
NULL
,
&
rx
};
resolve_ctxt
rx
;
slap_callback
cb
=
{
NULL
,
syncrepl_resolve_cb
,
NULL
,
NULL
};
rx
.
rx_si
=
si
;
rx
.
rx_mods
=
newlist
;
cb
.
sc_private
=
&
rx
;
op2
.
o_tag
=
LDAP_REQ_SEARCH
;
op2
.
ors_scope
=
LDAP_SCOPE_SUBTREE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment