Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
ef3fb76e
Commit
ef3fb76e
authored
Jul 23, 2007
by
Hallvard Furuseth
Browse files
ITS#5035 part 3: Make struct sync_cookie.rid and struct syncinfo_s.si_rid
int instead of long.
parent
9a4eecb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/slap.h
View file @
ef3fb76e
...
...
@@ -1655,7 +1655,7 @@ struct syncinfo_s;
struct
sync_cookie
{
struct
berval
ctxcsn
;
struct
berval
octet_str
;
long
rid
;
int
rid
;
LDAP_STAILQ_ENTRY
(
sync_cookie
)
sc_next
;
};
...
...
servers/slapd/syncrepl.c
View file @
ef3fb76e
...
...
@@ -52,7 +52,7 @@ struct nonpresent_entry {
typedef
struct
syncinfo_s
{
struct
slap_backend_db
*
si_be
;
struct
re_s
*
si_re
;
long
si_rid
;
int
si_rid
;
slap_bindconf
si_bindconf
;
struct
berval
si_base
;
struct
berval
si_logbase
;
...
...
@@ -3316,7 +3316,7 @@ syncrepl_unparse( syncinfo_t *si, struct berval *bv )
si
->
si_bindconf
.
sb_uri
=
uri
;
ptr
=
buf
;
ptr
+=
snprintf
(
ptr
,
sizeof
(
buf
),
IDSTR
"=%03
l
d "
PROVIDERSTR
"=%s"
,
ptr
+=
snprintf
(
ptr
,
sizeof
(
buf
),
IDSTR
"=%03d "
PROVIDERSTR
"=%s"
,
si
->
si_rid
,
si
->
si_bindconf
.
sb_uri
.
bv_val
);
if
(
!
BER_BVISNULL
(
&
bc
))
{
ptr
=
lutil_strcopy
(
ptr
,
bc
.
bv_val
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment