wrap the top case statement in brackets... i guess the macros are confusing things...
[OpenSRF.git] / src / gateway / osrf_http_translator.c
index 8b2ac70..87c12e9 100644 (file)
@@ -252,7 +252,7 @@ static int osrfHttpTranslatorParseRequest(osrfHttpTranslator* trans) {
 
         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);
@@ -269,6 +269,7 @@ static int osrfHttpTranslatorParseRequest(osrfHttpTranslator* trans) {
                 osrfLogActivity(OSRF_LOG_MARK, act->buf);
                 buffer_free(act);
                 break;
+            }
 
             case CONNECT:
                 trans->connecting = 1;