From c5b62ed31493f2f556a00d4cac07d1577f62fb6b Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 10 Mar 2008 05:51:09 +0000 Subject: [PATCH] Const correctness patch from Scott McKellar git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1275 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_system.h | 6 ++++-- src/libopensrf/osrf_system.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/opensrf/osrf_system.h b/include/opensrf/osrf_system.h index 24dfacb..3272309 100644 --- a/include/opensrf/osrf_system.h +++ b/include/opensrf/osrf_system.h @@ -25,7 +25,8 @@ int osrf_system_bootstrap_client( char* config_file, char* contextnode ); @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 @@ int osrfSystemBootstrapClientResc( char* configFile, char* contextNode, char* re @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 ); diff --git a/src/libopensrf/osrf_system.c b/src/libopensrf/osrf_system.c index 136558f..61977ad 100644 --- a/src/libopensrf/osrf_system.c +++ b/src/libopensrf/osrf_system.c @@ -81,7 +81,8 @@ int osrfSystemInitCache( void ) { } -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 @@ static ChildNode* seek_child( pid_t pid ) { /*----------- 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; -- 2.43.2