From 3985c8c64680d89a3ab328347e795af0c69c48ea Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 2 Apr 2014 03:51:35 +0000 Subject: sanitise sign comparisons This is a mechanical change addressing the various sign comparison warnings that are identified by both clang and gcc. This helps cleanup some of the warning spew that occurs during builds. llvm-svn: 205390 --- lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp') diff --git a/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp b/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp index 198a1eb595c..8583f67ab0e 100644 --- a/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp +++ b/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp @@ -1142,7 +1142,7 @@ ProcessMonitor::Launch(LaunchArgs *args) if (envp == NULL || envp[0] == NULL) envp = const_cast(environ); - if ((pid = terminal.Fork(err_str, err_len)) == -1) + if ((pid = terminal.Fork(err_str, err_len)) == static_cast(-1)) { args->m_error.SetErrorToGenericError(); args->m_error.SetErrorString("Process fork failed."); @@ -1203,7 +1203,7 @@ ProcessMonitor::Launch(LaunchArgs *args) } // Wait for the child process to to trap on its call to execve. - pid_t wpid; + lldb::pid_t wpid; int status; if ((wpid = waitpid(pid, &status, 0)) < 0) { @@ -1746,7 +1746,7 @@ ProcessMonitor::StopThread(lldb::tid_t tid) if (log) log->Printf ("ProcessMonitor::%s(bp) waitpid, pid = %" PRIu64 ", status = %d", __FUNCTION__, wait_pid, status); - if (wait_pid == -1) + if (wait_pid == static_cast(-1)) { // If we got interrupted by a signal (in our process, not the // inferior) try again. -- cgit v1.2.3