X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a89444b19b0ceb41db8db6cfa4e6fa77e26d7759..71524cea5b1835b570a4a5a20616bda06a1f5aa2:/stglibs/scriptexecuter.lib/scriptexecuter.c?ds=inline diff --git a/stglibs/scriptexecuter.lib/scriptexecuter.c b/stglibs/scriptexecuter.lib/scriptexecuter.c index 728082ae..bdf60230 100644 --- a/stglibs/scriptexecuter.lib/scriptexecuter.c +++ b/stglibs/scriptexecuter.lib/scriptexecuter.c @@ -46,7 +46,6 @@ void Executer(int msgID, pid_t pid, char * procName) void Executer(int msgID, pid_t pid) #endif { -int ret; struct SCRIPT_DATA sd; struct sigaction newsa, oldsa; sigset_t sigmask; @@ -94,7 +93,7 @@ sigaction(SIGUSR1, &newsa, &oldsa); while (nonstop) { sd.mtype = 1; - ret = msgrcv(msgid, &sd, MAX_SCRIPT_LEN, 0, 0); + int ret = msgrcv(msgid, &sd, MAX_SCRIPT_LEN, 0, 0); if (ret < 0) {