mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
I make no claims that Mach ports work, but at least we should check the right thing
llvm-svn: 238984
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user