Apply the const qualifier to the return value from osrfMessageGetResult().
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 22 Mar 2010 20:55:56 +0000 (20:55 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 22 Mar 2010 20:55:56 +0000 (20:55 +0000)
M    include/opensrf/osrf_message.h
M    src/libopensrf/osrf_message.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1942 9efc2488-bf62-4759-914b-345cdb29e865

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

index 84839af..265ec68 100644 (file)
@@ -126,7 +126,7 @@ void osrf_message_add_object_param( osrfMessage* msg, const jsonObject* o );
 
 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 );
 
index b598ad3..a24b9ff 100644 (file)
@@ -667,7 +667,7 @@ static osrfMessage* deserialize_one_message( const jsonObject* obj ) {
        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;
 }