git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More verbose debug.
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
rscript
/
rscript.cpp
diff --git
a/projects/stargazer/plugins/other/rscript/rscript.cpp
b/projects/stargazer/plugins/other/rscript/rscript.cpp
index 928629ad8b007f48bde0e7b4644cb46208e9fc7a..1e842d255865925fa642d0cdaeb50502f7da2e25 100644
(file)
--- a/
projects/stargazer/plugins/other/rscript/rscript.cpp
+++ b/
projects/stargazer/plugins/other/rscript/rscript.cpp
@@
-19,14
+19,10
@@
* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
-#include
<sys/time.h>
+#include
"rscript.h"
-#include <csignal>
-#include <cassert>
-#include <cstdlib>
-#include <cerrno>
-#include <cstring>
-#include <algorithm>
+#include "ur_functor.h"
+#include "send_functor.h"
#include "stg/common.h"
#include "stg/locker.h"
#include "stg/common.h"
#include "stg/locker.h"
@@
-34,9
+30,17
@@
#include "stg/user_property.h"
#include "stg/plugin_creator.h"
#include "stg/logger.h"
#include "stg/user_property.h"
#include "stg/plugin_creator.h"
#include "stg/logger.h"
-#include "rscript.h"
-#include "ur_functor.h"
-#include "send_functor.h"
+
+#include <algorithm>
+
+#include <csignal>
+#include <cassert>
+#include <cstdlib>
+#include <cerrno>
+#include <cstring>
+
+#include <sys/time.h>
+#include <netinet/ip.h>
extern volatile time_t stgTime;
extern volatile time_t stgTime;
@@
-47,7
+51,7
@@
namespace {
template<typename T>
struct USER_IS
{
template<typename T>
struct USER_IS
{
- USER_IS(USER_PTR u) : user(u) {}
+
explicit
USER_IS(USER_PTR u) : user(u) {}
bool operator()(const T & notifier) { return notifier.GetUser() == user; }
USER_PTR user;
bool operator()(const T & notifier) { return notifier.GetUser() == user; }
USER_PTR user;
@@
-296,7
+300,7
@@
if (isRunning)
return 0;
}
//-----------------------------------------------------------------------------
return 0;
}
//-----------------------------------------------------------------------------
-int REMOTE_SCRIPT::Reload()
+int REMOTE_SCRIPT::Reload(
const MODULE_SETTINGS & /*ms*/
)
{
NRMapParser nrMapParser;
{
NRMapParser nrMapParser;