svn commit: samba r16818 - in branches/SOC/mkhl/ldb-map/modules: .

mkhl at samba.org mkhl at samba.org
Wed Jul 5 12:24:28 GMT 2006


Author: mkhl
Date: 2006-07-05 12:24:27 +0000 (Wed, 05 Jul 2006)
New Revision: 16818

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16818

Log:
Add more `const' declarations.

Martin

Modified:
   branches/SOC/mkhl/ldb-map/modules/ldb_map.c


Changeset:
Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c
===================================================================
--- branches/SOC/mkhl/ldb-map/modules/ldb_map.c	2006-07-05 11:43:49 UTC (rev 16817)
+++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c	2006-07-05 12:24:27 UTC (rev 16818)
@@ -312,7 +312,7 @@
 
 /* Find an attribute by the local name. */
 static
-struct ldb_map_attribute *
+const struct ldb_map_attribute *
 find_local_attr(struct ldb_map_context *data,
 		const char *name)
 {
@@ -378,7 +378,7 @@
 check_attr_mapped(struct ldb_map_context *data,
 		  const char* attr)
 {
-	struct ldb_map_attribute *map;
+	const struct ldb_map_attribute *map;
 
 	map = find_local_attr(data, attr);
 	if (map == NULL)
@@ -500,7 +500,7 @@
 		    const char * const *attrs)
 {
 	struct ldb_map_context *data = map_get_context(module);
-	struct ldb_map_attribute *map;
+	const struct ldb_map_attribute *map;
 	const char *name;
 	const char **result;
 	int i, j, last;
@@ -1601,7 +1601,7 @@
 	struct ldb_map_context *data = map_get_context(module);
 	/* names of remote attributes the original message can map */
 	/* const char * const names[]; */
-	struct ldb_map_attribute *map;
+	const struct ldb_map_attribute *map;
 	int i, ret;
 
 	/* try to map each attribute;



More information about the samba-cvs mailing list