summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwchang0222%aol.com <devnull@localhost>2004-10-29 22:57:21 +0000
committerwchang0222%aol.com <devnull@localhost>2004-10-29 22:57:21 +0000
commit1df27362b1acd60f0cf4c7fc76e6e5222def2b8f (patch)
treece3a480c7e5a2c6ff3b729958b17992303f85707
parentc1f116fd03a87998a80085fbbd5ff9831b124f0d (diff)
downloadnss-hg-1df27362b1acd60f0cf4c7fc76e6e5222def2b8f.tar.gz
Bugzilla bug 265686: PK11_FindSlotByName(char *name) should be
PK11_FindSlotByName(const char *name). The patch is contributed by timeless@bemail.org. r=wtc. Modified Files: pk11func.h pk11slot.c Tag: NSS_3_9_BRANCH
-rw-r--r--security/nss/lib/pk11wrap/pk11func.h2
-rw-r--r--security/nss/lib/pk11wrap/pk11slot.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/lib/pk11wrap/pk11func.h b/security/nss/lib/pk11wrap/pk11func.h
index 7d92e32f8..fde449762 100644
--- a/security/nss/lib/pk11wrap/pk11func.h
+++ b/security/nss/lib/pk11wrap/pk11func.h
@@ -137,7 +137,7 @@ SECStatus PK11_TokenRefresh(PK11SlotInfo *slot);
/******************************************************************
* Slot info functions
******************************************************************/
-PK11SlotInfo *PK11_FindSlotByName(char *name);
+PK11SlotInfo *PK11_FindSlotByName(const char *name);
PK11SlotInfo *PK11_FindSlotBySerial(char *serial);
/******************************************************************
* PK11_FindSlotsByNames searches for a PK11SlotInfo using one or
diff --git a/security/nss/lib/pk11wrap/pk11slot.c b/security/nss/lib/pk11wrap/pk11slot.c
index 7f1d078d1..1a4df7684 100644
--- a/security/nss/lib/pk11wrap/pk11slot.c
+++ b/security/nss/lib/pk11wrap/pk11slot.c
@@ -638,7 +638,7 @@ PK11_FindSlotsByNames(const char *dllName, const char* slotName,
}
PK11SlotInfo *
-PK11_FindSlotByName(char *name)
+PK11_FindSlotByName(const char *name)
{
SECMODModuleList *mlp;
SECMODModuleList *modules = SECMOD_GetDefaultModuleList();