diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-08-06 19:14:47 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-08-06 19:14:47 +0000 |
commit | f2ac0bc186728ec0aa8695729d9b488dee5ec679 (patch) | |
tree | 8f2d41588b3872750b377ae6fe316e4e357a8fd6 /lib/server | |
parent | 1332437a177df06bdba365fad5f816b9bc9cda40 (diff) |
Fix return types for integer function to be integers
Diffstat (limited to 'lib/server')
-rw-r--r-- | lib/server/ServerControl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/server/ServerControl.cpp b/lib/server/ServerControl.cpp index 5e7b7e59..47b1cc5f 100644 --- a/lib/server/ServerControl.cpp +++ b/lib/server/ServerControl.cpp @@ -229,11 +229,10 @@ bool KillServer(int pid, bool WaitForProcess) int StartDaemon(int current_pid, const std::string& cmd_line, const char* pid_file) { - TEST_THAT_OR(current_pid == 0, return false); + TEST_THAT_OR(current_pid == 0, return 0); int new_pid = LaunchServer(cmd_line, pid_file); - - TEST_THAT_OR(new_pid != -1 && new_pid != 0, return false); + TEST_THAT_OR(new_pid != -1 && new_pid != 0, return 0); ::sleep(1); TEST_THAT_OR(ServerIsAlive(new_pid), return 0); |