[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
passwd.c does not compile (ITS#2929)
Full_Name: Jean-Frederic Clere
Version: 2.2.4
OS: any no gcc compiler
URL: ftp://ftp.openldap.org/incoming/jfclere-040122.patch
Submission from: (NULL) (217.115.74.12)
slap_callback cb = { NULL, slap_null_cb, NULL, NULL };
slap_callback cb2 = { &cb, slap_replog_cb, NULL, NULL };
Does not compile on machines that do not have a gnu compile.
The fix is the following:
+++
--- openldap-2.2.4/servers/slapd/passwd.c.org Thu Jan 8 16:04:26 2004
+++ openldap-2.2.4/servers/slapd/passwd.c Fri Jan 9 09:04:37 2004
@@ -37,7 +37,11 @@
Modifications ml, **modtail;
Operation op2;
slap_callback cb = { NULL, slap_null_cb, NULL, NULL };
- slap_callback cb2 = { &cb, slap_replog_cb, NULL, NULL };
+ slap_callback cb2;
+ cb2.sc_next = &cb;
+ cb2.sc_response = slap_replog_cb;
+ cb2.sc_cleanup = NULL;
+ cb2.sc_private = NULL;
assert( ber_bvcmp( &slap_EXOP_MODIFY_PASSWD, &op->ore_reqoid ) == 0 );
+++