From: scottmk Date: Mon, 16 Aug 2010 16:27:32 +0000 (+0000) Subject: A few minor tweaks in the name of const-correctness. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9d0465968811072a7c6230c4db03ac0d72715124;p=opensrf%2Fbjwebb.git A few minor tweaks in the name of const-correctness. M src/router/osrf_router_main.c git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2007 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/router/osrf_router_main.c b/src/router/osrf_router_main.c index c8b1dc9..ba14551 100644 --- a/src/router/osrf_router_main.c +++ b/src/router/osrf_router_main.c @@ -30,7 +30,7 @@ static osrfRouter* router = NULL; static volatile sig_atomic_t stop_signal = 0; -static void setupRouter(jsonObject* configChunk); +static void setupRouter( const jsonObject* configChunk ); /** @brief Respond to signal by setting a switch that will interrupt the main loop. @@ -93,7 +93,7 @@ int main( int argc, char* argv[] ) { int parent = 1; // boolean int i; for(i = 0; i < configInfo->size; i++) { - jsonObject* configChunk = jsonObjectGetIndex(configInfo, i); + const jsonObject* configChunk = jsonObjectGetIndex( configInfo, i ); if( ! jsonObjectGetKeyConst( configChunk, "transport" ) ) { // In searching the configuration file for a given context, we may have found a @@ -170,7 +170,7 @@ int main( int argc, char* argv[] ) { Configure oneself, daemonize, and then call osrfRouterRun() to go into a near-endless loop. Return when interrupted by a signal, or when something goes wrong. */ -static void setupRouter(jsonObject* configChunk) { +static void setupRouter( const jsonObject* configChunk ) { const jsonObject* transport_cfg = jsonObjectGetKeyConst( configChunk, "transport" );