[Opensrf-commits] r2007 - trunk/src/router (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 16 12:27:35 EDT 2010
Author: scottmk
Date: 2010-08-16 12:27:32 -0400 (Mon, 16 Aug 2010)
New Revision: 2007
Modified:
trunk/src/router/osrf_router_main.c
Log:
A few minor tweaks in the name of const-correctness.
M src/router/osrf_router_main.c
Modified: trunk/src/router/osrf_router_main.c
===================================================================
--- trunk/src/router/osrf_router_main.c 2010-08-16 15:18:08 UTC (rev 2006)
+++ trunk/src/router/osrf_router_main.c 2010-08-16 16:27:32 UTC (rev 2007)
@@ -30,7 +30,7 @@
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 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 @@
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" );
More information about the opensrf-commits
mailing list