[Opensrf-commits] r1781 - trunk/src/gateway (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Sep 12 21:51:14 EDT 2009


Author: scottmk
Date: 2009-09-12 21:51:12 -0400 (Sat, 12 Sep 2009)
New Revision: 1781

Modified:
   trunk/src/gateway/osrf_json_gateway.c
Log:
In osrf_json_gateway.c: added the const qualifier to three
different local variables, all named "str".


Modified: trunk/src/gateway/osrf_json_gateway.c
===================================================================
--- trunk/src/gateway/osrf_json_gateway.c	2009-09-12 18:19:35 UTC (rev 1780)
+++ trunk/src/gateway/osrf_json_gateway.c	2009-09-13 01:51:12 UTC (rev 1781)
@@ -242,7 +242,7 @@
 		if(!strcasecmp(input_format, "json")) {
 			jsonObject * arr = jsonNewObject(NULL);
 
-			char* str;
+			const char* str;
 			int i = 0;
 
 			while( (str = osrfStringArrayGetString(mparams, i++)) ) 
@@ -258,7 +258,7 @@
 			if(!strcasecmp(input_format, "xml")) {
 				jsonObject* jsonParams = jsonNewObject(NULL);
 
-				char* str;
+				const char* str;
 				int i = 0;
 				while( (str = osrfStringArrayGetString(mparams, i++)) ) {
 					jsonObjectPush(jsonParams, jsonXMLToJSONObject(str));
@@ -286,7 +286,7 @@
 		if(!authtoken) authtoken = "";
 		growing_buffer* act = buffer_init(128);	
 		buffer_fadd(act, "[%s] [%s] [%s] %s %s", r->connection->remote_ip, authtoken, osrf_locale, service, method );
-		char* str; int i = 0;
+		const char* str; int i = 0;
 		while( (str = osrfStringArrayGetString(mparams, i++)) ) {
 			if( i == 1 ) {
 				OSRF_BUFFER_ADD(act, " ");



More information about the opensrf-commits mailing list