wrap the top case statement in brackets... i guess the macros are confusing things...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 18 Dec 2008 20:49:09 +0000 (20:49 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 18 Dec 2008 20:49:09 +0000 (20:49 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1540 9efc2488-bf62-4759-914b-345cdb29e865

src/gateway/osrf_http_translator.c

index 8b2ac70..87c12e9 100644 (file)
@@ -252,7 +252,7 @@ static int osrfHttpTranslatorParseRequest(osrfHttpTranslator* trans) {
 
         switch(msg->m_type) {
 
 
         switch(msg->m_type) {
 
-            case REQUEST:
+            case REQUEST: {
                 jsonObject* params = msg->_params;
                 growing_buffer* act = buffer_init(128);        
                 buffer_fadd(act, "[%s] [%s] %s %s", trans->remoteHost, "", trans->service, msg->method_name);
                 jsonObject* params = msg->_params;
                 growing_buffer* act = buffer_init(128);        
                 buffer_fadd(act, "[%s] [%s] %s %s", trans->remoteHost, "", trans->service, msg->method_name);
@@ -269,6 +269,7 @@ static int osrfHttpTranslatorParseRequest(osrfHttpTranslator* trans) {
                 osrfLogActivity(OSRF_LOG_MARK, act->buf);
                 buffer_free(act);
                 break;
                 osrfLogActivity(OSRF_LOG_MARK, act->buf);
                 buffer_free(act);
                 break;
+            }
 
             case CONNECT:
                 trans->connecting = 1;
 
             case CONNECT:
                 trans->connecting = 1;