зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1308103 - Replace PL_strcmp/PL_strncmp with strcmp/strncmp in netwerk/ r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D123877
This commit is contained in:
Родитель
1b5cf56a3b
Коммит
ad454095ed
|
@ -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;
|
||||
|
|
|
@ -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] != '=' &&
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче