From af8deb6198aa7ac70e5c36629a08836d1cdd697f Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 19 Oct 2022 19:52:56 +0000 Subject: Bug 1796079 - Fix -Wstring-conversion warnings. r=nss-reviewers,mt Differential Revision: https://phabricator.services.mozilla.com/D159676 --- lib/ssl/sslmutex.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/ssl/sslmutex.c b/lib/ssl/sslmutex.c index 2bafdc2db..0e3c37f07 100644 --- a/lib/ssl/sslmutex.c +++ b/lib/ssl/sslmutex.c @@ -503,7 +503,7 @@ sslMutex_Lock(sslMutex *pMutex) case WAIT_IO_COMPLETION: #endif default: /* should never happen. nothing we can do. */ - PR_ASSERT(!("WaitForSingleObject returned invalid value.")); + PR_ASSERT(PR_FALSE && "WaitForSingleObject returned invalid value."); PORT_SetError(PR_UNKNOWN_ERROR); rv = SECFailure; break; @@ -612,7 +612,7 @@ sslMutex_Init(sslMutex* pMutex, int shared) if (!shared) { return single_process_sslMutex_Init(pMutex); } - PORT_Assert(!("sslMutex_Init not implemented for multi-process applications !")); + PORT_Assert(PR_FALSE && "sslMutex_Init not implemented for multi-process applications !"); PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return SECFailure; } @@ -624,7 +624,7 @@ sslMutex_Destroy(sslMutex* pMutex, PRBool processLocal) if (PR_FALSE == pMutex->isMultiProcess) { return single_process_sslMutex_Destroy(pMutex); } - PORT_Assert(!("sslMutex_Destroy not implemented for multi-process applications !")); + PORT_Assert(PR_FALSE && "sslMutex_Destroy not implemented for multi-process applications !"); PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return SECFailure; } @@ -636,7 +636,7 @@ sslMutex_Unlock(sslMutex* pMutex) if (PR_FALSE == pMutex->isMultiProcess) { return single_process_sslMutex_Unlock(pMutex); } - PORT_Assert(!("sslMutex_Unlock not implemented for multi-process applications !")); + PORT_Assert(PR_FALSE && "sslMutex_Unlock not implemented for multi-process applications !"); PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return SECFailure; } @@ -648,7 +648,7 @@ sslMutex_Lock(sslMutex* pMutex) if (PR_FALSE == pMutex->isMultiProcess) { return single_process_sslMutex_Lock(pMutex); } - PORT_Assert(!("sslMutex_Lock not implemented for multi-process applications !")); + PORT_Assert(PR_FALSE && "sslMutex_Lock not implemented for multi-process applications !"); PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return SECFailure; } -- cgit v1.2.1