[Fedora-directory-commits] ldapserver/ldap/servers/plugins/replication cl5_api.c, 1.19, 1.20 windows_protocol_util.c, 1.37, 1.38

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Fri Oct 19 02:09:26 UTC 2007


Author: nhosoi

Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/replication
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4455/ldap/servers/plugins/replication

Modified Files:
	cl5_api.c windows_protocol_util.c 
Log Message:
Resolves: #339031
Summary: Solaris: warnings reported by the Solaris compiler



Index: cl5_api.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/replication/cl5_api.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- cl5_api.c	18 Oct 2007 00:08:31 -0000	1.19
+++ cl5_api.c	19 Oct 2007 02:09:24 -0000	1.20
@@ -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 @@
             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));
             }
         }
 


Index: windows_protocol_util.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/replication/windows_protocol_util.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- windows_protocol_util.c	18 Oct 2007 00:08:31 -0000	1.37
+++ windows_protocol_util.c	19 Oct 2007 02:09:24 -0000	1.38
@@ -2256,7 +2256,7 @@
 	 * 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) {




More information about the Fedora-directory-commits mailing list