git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ticket 37. The newTariff, currentTariff objects added, if (newTariff)
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
smux
/
handlers.cpp
diff --git
a/projects/stargazer/plugins/other/smux/handlers.cpp
b/projects/stargazer/plugins/other/smux/handlers.cpp
index 01878da620a052d877e5dc1669efccf3e31944ee..ac179da9cc28ba6b0ae040c3e4e2d4aa7fb8f8ee 100644
(file)
--- a/
projects/stargazer/plugins/other/smux/handlers.cpp
+++ b/
projects/stargazer/plugins/other/smux/handlers.cpp
@@
-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
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);
}
if (it != pdusHandlers.end())
{
return (this->*(it->second))(&pdus->choice.pdus);
}
+#ifdef SMUX_DEBUG
else
{
else
{
-#ifdef SMUX_DEBUG
switch (pdus->present)
{
case PDUs_PR_NOTHING:
switch (pdus->present)
{
case PDUs_PR_NOTHING:
@@
-67,8
+66,8
@@
else
default:
printfd(__FILE__, "SMUX::PDUsRequestHandler() - undefined\n");
}
default:
printfd(__FILE__, "SMUX::PDUsRequestHandler() - undefined\n");
}
-#endif
}
}
+#endif
return true;
}
return true;
}