Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: nss/lib/util/utilmod.c

Issue 1843333003: Update NSPR to 4.12 and NSS to 3.23 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/lib/util/utilmod.c
diff --git a/nss/lib/util/utilmod.c b/nss/lib/util/utilmod.c
index 4be99ade2f86fea3dd68a27ad45d8d7535fa9080..230b5c97dd5ac9d1c13d007e899b25f8aae5b95f 100644
--- a/nss/lib/util/utilmod.c
+++ b/nss/lib/util/utilmod.c
@@ -165,7 +165,7 @@ char *_NSSUTIL_GetOldSecmodName(const char *dbname,const char *filename)
static SECStatus nssutil_AddSecmodDBEntry(const char *appName,
const char *filename,
const char *dbname,
- char *module, PRBool rw);
+ const char *module, PRBool rw);
enum lfopen_mode { lfopen_truncate, lfopen_append };
@@ -210,7 +210,7 @@ nssutil_ReadSecmodDB(const char *appName,
char *paramsValue=NULL;
PRBool failed = PR_TRUE;
- moduleList = (char **) PORT_ZAlloc(useCount*sizeof(char **));
+ moduleList = (char **) PORT_ZAlloc(useCount*sizeof(char *));
if (moduleList == NULL) return NULL;
if (dbname == NULL) {
@@ -387,7 +387,7 @@ done:
status = PR_Access(olddbname, PR_ACCESS_EXISTS);
if (status == PR_SUCCESS) {
PR_smprintf_free(olddbname);
- PORT_ZFree(moduleList, useCount*sizeof(char **));
+ PORT_ZFree(moduleList, useCount*sizeof(char *));
PORT_SetError(SEC_ERROR_LEGACY_DATABASE);
return NULL;
}
@@ -469,7 +469,7 @@ static SECStatus
nssutil_DeleteSecmodDBEntry(const char *appName,
const char *filename,
const char *dbname,
- char *args,
+ const char *args,
PRBool rw)
{
/* SHDB_FIXME implement */
@@ -610,7 +610,7 @@ loser:
static SECStatus
nssutil_AddSecmodDBEntry(const char *appName,
const char *filename, const char *dbname,
- char *module, PRBool rw)
+ const char *module, PRBool rw)
{
os_stat_type stat_existing;
os_open_permissions_type file_mode;
« nss/lib/util/secoid.c ('K') | « nss/lib/util/utf8.c ('k') | nss/lib/util/utilpars.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698