[Opensrf-commits] r1275 - in trunk: include/opensrf src/libopensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 10 02:24:09 EDT 2008
Author: miker
Date: 2008-03-10 01:51:09 -0400 (Mon, 10 Mar 2008)
New Revision: 1275
Modified:
trunk/include/opensrf/osrf_system.h
trunk/src/libopensrf/osrf_system.c
Log:
Const correctness patch from Scott McKellar
Modified: trunk/include/opensrf/osrf_system.h
===================================================================
--- trunk/include/opensrf/osrf_system.h 2008-03-10 04:53:26 UTC (rev 1274)
+++ trunk/include/opensrf/osrf_system.h 2008-03-10 05:51:09 UTC (rev 1275)
@@ -25,7 +25,8 @@
@param resource The login resource. If NULL a default will be created
@return 1 on successs, 0 on failure.
*/
-int osrfSystemBootstrapClientResc( char* configFile, char* contextNode, char* resource );
+int osrfSystemBootstrapClientResc( const char* configFile,
+ const char* contextNode, const char* resource );
/**
Bootstrap the server.
@@ -35,7 +36,8 @@
@param contextnode The config context
@return 0 on success, -1 on error
*/
-int osrfSystemBootstrap( char* hostName, char* configfile, char* contextNode );
+int osrfSystemBootstrap( const char* hostName, const char* configfile,
+ const char* contextNode );
transport_client* osrfSystemGetTransportClient( void );
Modified: trunk/src/libopensrf/osrf_system.c
===================================================================
--- trunk/src/libopensrf/osrf_system.c 2008-03-10 04:53:26 UTC (rev 1274)
+++ trunk/src/libopensrf/osrf_system.c 2008-03-10 05:51:09 UTC (rev 1275)
@@ -81,7 +81,8 @@
}
-int osrfSystemBootstrap( char* hostname, char* configfile, char* contextNode ) {
+int osrfSystemBootstrap( const char* hostname, const char* configfile,
+ const char* contextNode ) {
if( !(hostname && configfile && contextNode) ) return -1;
/* first we grab the settings */
@@ -301,7 +302,8 @@
/*----------- End of routines to manage list of children --*/
-int osrfSystemBootstrapClientResc( char* config_file, char* contextnode, char* resource ) {
+int osrfSystemBootstrapClientResc( const char* config_file,
+ const char* contextnode, const char* resource ) {
int failure = 0;
More information about the opensrf-commits
mailing list