diff options
author | Enrico Granata <egranata@apple.com> | 2015-06-03 22:35:55 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-06-03 22:35:55 +0000 |
commit | 600aee6b693e9245554b2e3eab497fdd347830ff (patch) | |
tree | 6acffbdf9be80a8bf0707564eecab790583cdfed /lldb/source/Core/ConnectionMachPort.cpp | |
parent | d319c4fbbc10e4f6f7fd16be65aed9c8e769e8b5 (diff) | |
download | bcm5719-llvm-600aee6b693e9245554b2e3eab497fdd347830ff.tar.gz bcm5719-llvm-600aee6b693e9245554b2e3eab497fdd347830ff.zip |
I make no claims that Mach ports work, but at least we should check the right thing
llvm-svn: 238984
Diffstat (limited to 'lldb/source/Core/ConnectionMachPort.cpp')
-rw-r--r-- | lldb/source/Core/ConnectionMachPort.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ConnectionMachPort.cpp b/lldb/source/Core/ConnectionMachPort.cpp index cf68c8071c7..e04c4890557 100644 --- a/lldb/source/Core/ConnectionMachPort.cpp +++ b/lldb/source/Core/ConnectionMachPort.cpp @@ -68,7 +68,7 @@ ConnectionMachPort::Connect (const char *s, Error *error_ptr) ConnectionStatus status = eConnectionStatusError; - if (strncmp (s, "bootstrap-checkin://", strlen("bootstrap-checkin://"))) + if (0 == strncmp (s, "bootstrap-checkin://", strlen("bootstrap-checkin://"))) { s += strlen("bootstrap-checkin://"); @@ -82,7 +82,7 @@ ConnectionMachPort::Connect (const char *s, Error *error_ptr) error_ptr->SetErrorString ("bootstrap port name is empty"); } } - else if (strncmp (s, "bootstrap-lookup://", strlen("bootstrap-lookup://"))) + else if (0 == strncmp (s, "bootstrap-lookup://", strlen("bootstrap-lookup://"))) { s += strlen("bootstrap-lookup://"); if (*s) |