From 2ad03b38f1f4e25a39c85f24b767b8e73343ac36 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 28 Jul 2014 03:09:40 -0700 Subject: [PATCH] lib: fix compile break. --- lib/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.cpp b/lib/util.cpp index 1d0fe675ad..5ec56a3208 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -482,10 +482,10 @@ void kill_program(HANDLE pid) { TerminateProcess(pid, 0); } #else -void int kill_program(int pid, int exit_code) { +int kill_program(int pid, int exit_code) { int retval; retval = kill(pid, SIGKILL); - if (-1 = retval) { + if (-1 == retval) { retval = errno; } return retval;