Patch from Scott McKellar:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 5 Dec 2008 19:32:28 +0000 (19:32 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 5 Dec 2008 19:32:28 +0000 (19:32 +0000)
I stumbled across another redundant and deprecated identifier.  This
patch replaces osrf_app_session_connect with osrfAppSessionConnect.

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

src/srfsh/srfsh.c

index e468849..176e239 100644 (file)
@@ -571,7 +571,7 @@ int send_request( char* server,
 
        osrfAppSession* session = osrfAppSessionClientInit(server);
 
-       if(!osrf_app_session_connect(session)) {
+       if(!osrfAppSessionConnect(session)) {
                fprintf(stderr, "Unable to communicate with service %s\n", server);
                osrfLogWarning( OSRF_LOG_MARK,  "Unable to connect to remote service %s\n", server );
                jsonObjectFree(params);
@@ -835,7 +835,7 @@ static int handle_math( char* words[] ) {
 static int do_math( int count, int style ) {
 
        osrfAppSession* session = osrfAppSessionClientInit( "opensrf.math" );
-       osrf_app_session_connect(session);
+       osrfAppSessionConnect(session);
 
        jsonObject* params = jsonParseString("[]");
        jsonObjectPush(params,jsonNewObject("1"));