[Opensrf-commits] r1942 - in trunk: include/opensrf src/libopensrf (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 22 16:56:02 EDT 2010


Author: scottmk
Date: 2010-03-22 16:55:56 -0400 (Mon, 22 Mar 2010)
New Revision: 1942

Modified:
   trunk/include/opensrf/osrf_message.h
   trunk/src/libopensrf/osrf_message.c
Log:
Apply the const qualifier to the return value from osrfMessageGetResult().

M    include/opensrf/osrf_message.h
M    src/libopensrf/osrf_message.c


Modified: trunk/include/opensrf/osrf_message.h
===================================================================
--- trunk/include/opensrf/osrf_message.h	2010-03-22 19:46:09 UTC (rev 1941)
+++ trunk/include/opensrf/osrf_message.h	2010-03-22 20:55:56 UTC (rev 1942)
@@ -126,7 +126,7 @@
 
 void osrf_message_add_param( osrfMessage*, const char* param_string );
 
-jsonObject* osrfMessageGetResult( osrfMessage* msg );
+const jsonObject* osrfMessageGetResult( osrfMessage* msg );
 
 char* osrfMessageSerializeBatch( osrfMessage* msgs [], int count );
 

Modified: trunk/src/libopensrf/osrf_message.c
===================================================================
--- trunk/src/libopensrf/osrf_message.c	2010-03-22 19:46:09 UTC (rev 1941)
+++ trunk/src/libopensrf/osrf_message.c	2010-03-22 20:55:56 UTC (rev 1942)
@@ -667,7 +667,7 @@
 	The returned pointer points into the innards of the osrfMessage.  The calling code should
 	@em not call jsonObjectFree() on it, because the osrfMessage still owns it.
 */
-jsonObject* osrfMessageGetResult( osrfMessage* msg ) {
+const jsonObject* osrfMessageGetResult( osrfMessage* msg ) {
 	if(msg) return msg->_result_content;
 	return NULL;
 }



More information about the opensrf-commits mailing list