diff options
author | wtc%netscape.com <devnull@localhost> | 2002-04-26 23:05:40 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-04-26 23:05:40 +0000 |
commit | c0d5b1b213136e0295cd2148539878391345405e (patch) | |
tree | bd9e912081eb28c3b1b71c93608396e76557503c | |
parent | 1bbd14a3eb9872c17099b3a39766cb05ddca0f07 (diff) | |
download | nss-hg-c0d5b1b213136e0295cd2148539878391345405e.tar.gz |
Needed a (char *) cast for slotInfo.manufacturerID because it is an array
of "unsigned" chars. Mac's compiler complains about that.
-rw-r--r-- | security/nss/lib/pk11wrap/pk11slot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/pk11wrap/pk11slot.c b/security/nss/lib/pk11wrap/pk11slot.c index 2b2af4fea..809c2b3a3 100644 --- a/security/nss/lib/pk11wrap/pk11slot.c +++ b/security/nss/lib/pk11wrap/pk11slot.c @@ -1888,7 +1888,7 @@ PK11_InitSlot(SECMODModule *mod,CK_SLOT_ID slotID,PK11SlotInfo *slot) (char *)slotInfo.slotDescription, sizeof(slotInfo.slotDescription)); slot->isHW = (PRBool)((slotInfo.flags & CKF_HW_SLOT) == CKF_HW_SLOT); #define ACTIVE_CARD "ActivCard SA" - slot->isActiveCard = (PRBool)(PORT_Strncmp(slotInfo.manufacturerID, + slot->isActiveCard = (PRBool)(PORT_Strncmp((char *)slotInfo.manufacturerID, ACTIVE_CARD, sizeof(ACTIVE_CARD)-1) == 0); if ((slotInfo.flags & CKF_REMOVABLE_DEVICE) == 0) { slot->isPerm = PR_TRUE; |