[open-ils-commits] r14013 - trunk/Open-ILS/src/c-apps (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Sep 12 22:26:12 EDT 2009


Author: scottmk
Date: 2009-09-12 22:26:10 -0400 (Sat, 12 Sep 2009)
New Revision: 14013

Modified:
   trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
Added the const qualifier to several variables.


Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c	2009-09-13 02:12:02 UTC (rev 14012)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c	2009-09-13 02:26:10 UTC (rev 14013)
@@ -1104,7 +1104,7 @@
         if (local_context->size > 0) {
 	        osrfLogDebug( OSRF_LOG_MARK, "%d class-local context field(s) specified", local_context->size);
             int i = 0;
-            char* lcontext = NULL;
+            const char* lcontext = NULL;
             while ( (lcontext = osrfStringArrayGetString(local_context, i++)) ) {
                 osrfStringArrayAdd( context_org_array, oilsFMGetString( param, lcontext ) );
 	            osrfLogDebug(
@@ -1151,7 +1151,7 @@
                     osrfStringArray* jump_list = osrfHashGet(fcontext, "jump");
 
                     if (_fparam && jump_list) {
-                        char* flink = NULL;
+                        const char* flink = NULL;
                         int k = 0;
                         while ( (flink = osrfStringArrayGetString(jump_list, k++)) && _fparam ) {
                             free(foreign_pkey_value);
@@ -1209,7 +1209,7 @@
                     free(foreign_pkey_value);
     
                     int j = 0;
-                    char* foreign_field = NULL;
+                    const char* foreign_field = NULL;
                     while ( (foreign_field = osrfStringArrayGetString(osrfHashGet(fcontext,"context"), j++)) ) {
                         osrfStringArrayAdd( context_org_array, oilsFMGetString( _fparam, foreign_field ) );
 	                    osrfLogDebug(
@@ -1231,8 +1231,8 @@
 		jsonObjectFree(param);
 	}
 
-    char* context_org = NULL;
-    char* perm = NULL;
+    const char* context_org = NULL;
+    const char* perm = NULL;
     int OK = 0;
 
     if (permission->size == 0) {
@@ -4722,7 +4722,7 @@
 				while ((cur = jsonObjectGetIndex( res_list, res_idx++ ) )) {
 
 					int i = 0;
-					char* link_field;
+					const char* link_field;
 					
 					while ( (link_field = osrfStringArrayGetString(link_fields, i++)) ) {
 



More information about the open-ils-commits mailing list