summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2007-10-19 02:09:24 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2007-10-19 02:09:24 +0000
commiteb75ae358f49f93ffdeb7a66609d332d754ac13a (patch)
tree4249184b7f347959b2e94ad27a1e33e0b2e300d0 /ldap/servers/plugins/replication
parent219bd69fb2ec6ece60f512b97dd525b5287d52b3 (diff)
Resolves: #339031
Summary: Solaris: warnings reported by the Solaris compiler
Diffstat (limited to 'ldap/servers/plugins/replication')
-rw-r--r--ldap/servers/plugins/replication/cl5_api.c5
-rw-r--r--ldap/servers/plugins/replication/windows_protocol_util.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/ldap/servers/plugins/replication/cl5_api.c b/ldap/servers/plugins/replication/cl5_api.c
index 6ea4ec9a..b8ab11d3 100644
--- a/ldap/servers/plugins/replication/cl5_api.c
+++ b/ldap/servers/plugins/replication/cl5_api.c
@@ -43,6 +43,7 @@
/* cl5_api.c - implementation of 5.0 style changelog API */
+#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#if defined( OS_solaris ) || defined( hpux )
@@ -6451,8 +6452,8 @@ static void _cl5DBCloseFile (void **data)
if (rc != 0)
{
slapi_log_error(SLAPI_LOG_REPL, repl_plugin_name_cl, "_cl5DBCloseFile: "
- "failed to remove (%s) file; libdb error - %d (%s)\n", file->name,
- rc, dblayer_strerror(rc));
+ "failed to remove (%s) file; libdb error - %d (%s)\n",
+ fullpathname, rc, db_strerror(rc));
}
}
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c
index e0ab290c..8088d622 100644
--- a/ldap/servers/plugins/replication/windows_protocol_util.c
+++ b/ldap/servers/plugins/replication/windows_protocol_util.c
@@ -2256,7 +2256,7 @@ map_windows_tombstone_dn(Slapi_Entry *e, Slapi_DN **dn, Private_Repl_Protocol *p
* to trim the DN to only dc components. */
if (suffix = slapi_sdn_get_dn(windows_private_get_windows_subtree(prp->agmt))) {
/* If this isn't found, it is treated as an error below. */
- suffix = (const char *) strcasestr(suffix,"dc=");
+ suffix = (const char *) PL_strcasestr(suffix,"dc=");
}
if (cn && guid && suffix) {