diff --git a/netwerk/dns/DNS.cpp b/netwerk/dns/DNS.cpp index f12307125d65..0c620af74f02 100644 --- a/netwerk/dns/DNS.cpp +++ b/netwerk/dns/DNS.cpp @@ -308,8 +308,8 @@ bool NetAddr::operator==(const NetAddr& other) const { #if defined(XP_UNIX) } if (this->raw.family == AF_LOCAL) { - return PL_strncmp(this->local.path, other.local.path, - ArrayLength(this->local.path)); + return strncmp(this->local.path, other.local.path, + ArrayLength(this->local.path)); #endif } return false; diff --git a/netwerk/mime/nsMIMEHeaderParamImpl.cpp b/netwerk/mime/nsMIMEHeaderParamImpl.cpp index 3180fce0f525..ffc85d89eb99 100644 --- a/netwerk/mime/nsMIMEHeaderParamImpl.cpp +++ b/netwerk/mime/nsMIMEHeaderParamImpl.cpp @@ -1255,7 +1255,7 @@ nsresult DecodeRFC2047Str(const char* aHeader, // bug 227290. ignore an extraneous '=' at the end. // (# of characters in B-encoded part has to be a multiple of 4) int32_t n = r - (q + 2); - R -= (n % 4 == 1 && !PL_strncmp(r - 3, "===", 3)) ? 1 : 0; + R -= (n % 4 == 1 && !strncmp(r - 3, "===", 3)) ? 1 : 0; } // Bug 493544. Don't decode the encoded text until it ends if (R[-1] != '=' && diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp index 954e1ce98a0d..71daff8e0441 100644 --- a/netwerk/protocol/http/nsHttpHandler.cpp +++ b/netwerk/protocol/http/nsHttpHandler.cpp @@ -1007,9 +1007,9 @@ void nsHttpHandler::PrefsChanged(const char* pref) { gIOService->NotifySocketProcessPrefsChanged(pref); } -#define PREF_CHANGED(p) ((pref == nullptr) || !PL_strcmp(pref, p)) +#define PREF_CHANGED(p) ((pref == nullptr) || !strcmp(pref, p)) #define MULTI_PREF_CHANGED(p) \ - ((pref == nullptr) || !PL_strncmp(pref, p, sizeof(p) - 1)) + ((pref == nullptr) || !strncmp(pref, p, sizeof(p) - 1)) // If a security pref changed, lets clear our connection pool reuse if (MULTI_PREF_CHANGED(SECURITY_PREFIX)) { diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp index 531561f74e90..82b87fbb57d4 100644 --- a/netwerk/protocol/websocket/WebSocketChannel.cpp +++ b/netwerk/protocol/websocket/WebSocketChannel.cpp @@ -3905,7 +3905,7 @@ WebSocketChannel::OnStartRequest(nsIRequest* aRequest) { rv = NS_ERROR_ILLEGAL_VALUE; val = mProtocol.BeginWriting(); while ((token = nsCRT::strtok(val, ", \t", &val))) { - if (PL_strcmp(token, respProtocol.get()) == 0) { + if (strcmp(token, respProtocol.get()) == 0) { rv = NS_OK; break; }