[Fedora-directory-commits] ldapserver/ldap/servers/plugins/dna dna.c, 1.1, 1.2

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Thu Oct 18 00:08:32 UTC 2007


Author: nhosoi

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

Modified Files:
	dna.c 
Log Message:
Resolves: #188320
Summary: HP-UX: warnings reported by the HP-UX compiler



Index: dna.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/dna/dna.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dna.c	31 Jan 2007 22:49:25 -0000	1.1
+++ dna.c	18 Oct 2007 00:08:28 -0000	1.2
@@ -962,8 +962,8 @@
 					e, config_entry->type);
                                 if((value &&
 					!slapi_utf8casecmp(
-						config_entry->generate, 
-						value)) ||
+						(unsigned char *)config_entry->generate, 
+						(unsigned char *)value)) ||
 					0 == value)
                                 {
                                         generate = 1;
@@ -996,8 +996,8 @@
 						if(len == bv->bv_len)
 						{
 							if(!slapi_utf8ncasecmp(
-								bv->bv_val,
-								config_entry->
+								(unsigned char *)bv->bv_val,
+								(unsigned char *)config_entry->
 								generate,
 								len))
 
@@ -1128,7 +1128,6 @@
 			loadPluginConfig();
 	}
 
-bail:
         slapi_log_error( SLAPI_LOG_TRACE, DNA_PLUGIN_SUBSYSTEM , "<-- dna_config_check_post_op\n");
 
 	return 0;
@@ -1165,11 +1164,14 @@
 
 void dnaDumpConfigEntry(configEntry *entry)
 {
+	char buffer[BUFSIZ];
+	size_t bufsiz = (size_t)sizeof(buffer);
 	printf("<- type --------------> %s\n", entry->type);
 	printf("<---- prefix ---------> %s\n", entry->prefix);
 	printf("<---- next value -----> %lu\n", entry->nextval);
 	printf("<---- interval -------> %lu\n", entry->interval);
-	printf("<---- filter ---------> %s\n", entry->filter);
+	printf("<---- filter ---------> %s\n", 
+		slapi_filter_to_string_internal((const struct slapi_filter *)entry->filter, buffer, &bufsiz));
 	printf("<---- generate flag --> %s\n", entry->generate);
 }
 




More information about the Fedora-directory-commits mailing list