diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-09-25 10:30:20 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-09-27 09:16:22 +1000 |
commit | 139e0b16c74b371bea3657984d5fbd5eb19ae180 (patch) | |
tree | c3b721d335c87ad25ab6b2d18f9c18aaa71764e9 /src | |
parent | 1759967f2accda4ebc135d01acee6ade0b7e3211 (diff) |
process: fix compiler warning
../src/process.cpp: In member function ‘bool
xorg::testing::Process::WaitForExit(unsigned int)’:
../src/process.cpp:130:33: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Matt Dew <marcoz@osource.org>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.cpp b/src/process.cpp index 57ee35e..4deea14 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -127,7 +127,7 @@ void xorg::testing::Process::Start(const std::string& program, ...) { } bool xorg::testing::Process::WaitForExit(unsigned int timeout) { - for (int i = 0; i < timeout * 100; i++) { + for (unsigned int i = 0; i < timeout * 100; i++) { int status; int pid = waitpid(Pid(), &status, WNOHANG); |