]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/handlers.cpp
Fix email.
[stg.git] / projects / stargazer / plugins / other / smux / handlers.cpp
index 01878da620a052d877e5dc1669efccf3e31944ee..4d117affc592897ac3f46b278f54ab6e1b1d63c8 100644 (file)
@@ -44,15 +44,14 @@ bool SMUX::PDUsRequestHandler(const SMUX_PDUs_t * pdus)
 printfd(__FILE__, "SMUX::PDUsRequestHandler()\n");
 asn_fprint(stderr, &asn_DEF_SMUX_PDUs, pdus);
 #endif
-PDUsHandlers::iterator it;
-it = pdusHandlers.find(pdus->choice.pdus.present);
+PDUsHandlers::iterator it(pdusHandlers.find(pdus->choice.pdus.present));
 if (it != pdusHandlers.end())
     {
     return (this->*(it->second))(&pdus->choice.pdus);
     }
+#ifdef SMUX_DEBUG
 else
     {
-#ifdef SMUX_DEBUG
     switch (pdus->present)
         {
         case PDUs_PR_NOTHING:
@@ -67,8 +66,8 @@ else
         default:
             printfd(__FILE__, "SMUX::PDUsRequestHandler() - undefined\n");
         }
-#endif
     }
+#endif
 return true;
 }
 
@@ -103,7 +102,7 @@ asn_long2INTEGER(&msg->request_id, id);
 asn_long2INTEGER(&msg->error_status, 0);
 asn_long2INTEGER(&msg->error_index, 0);
 
-const VarBindList_t * vbl = &getRequest->variable_bindings; 
+const VarBindList_t * vbl = &getRequest->variable_bindings;
 for (int i = 0; i < vbl->list.count; ++i)
     {
     VarBind_t * vb = getRequest->variable_bindings.list.array[i];
@@ -149,7 +148,7 @@ asn_long2INTEGER(&msg->request_id, id);
 asn_long2INTEGER(&msg->error_status, 0);
 asn_long2INTEGER(&msg->error_index, 0);
 
-const VarBindList_t * vbl = &getRequest->variable_bindings; 
+const VarBindList_t * vbl = &getRequest->variable_bindings;
 for (int i = 0; i < vbl->list.count; ++i)
     {
     VarBind_t * vb = getRequest->variable_bindings.list.array[i];