#pragma implementation
#endif
-#include <errno.h>
+#include <cerrno>
#include <sys/types.h>
#include <sys/wait.h>
-#include <signal.h>
+#include <csignal>
#include <cstdlib>
-#include <cstdio>
#include <unistd.h>
#include "debug.h"
#include "syscall.h"
start = how;
command = what;
cbk = cback;
- pid = (pid_t) 0;
+ pid = static_cast<pid_t>(0);
retval = 0;
startscript();
}
return retval;
}
-void Systemcalls::kill(int tolerance) {
+void Systemcalls::kill(int /*tolerance*/) {
if (getpid() == 0) {
lyxerr << "LyX: Can't kill non-existing process." << endl;
return;
start = how;
command = what;
cbk = cback;
- pid = (pid_t) 0; // yet no child
+ pid = static_cast<pid_t>(0); // yet no child
retval = 0;
return startscript();
}