summaryrefslogtreecommitdiff
path: root/security/nss/lib/ckfw
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2001-12-07 01:36:25 +0000
committerrelyea%netscape.com <devnull@localhost>2001-12-07 01:36:25 +0000
commita29c06105eb45d5519fadb2ce261d3498450ae81 (patch)
tree3b4864f1ced4a534816a724f66be6608bcba54bc /security/nss/lib/ckfw
parent19724b6760c3175a98f2d1807562d708848a59d5 (diff)
downloadnss-hg-a29c06105eb45d5519fadb2ce261d3498450ae81.tar.gz
Clean up compilier warnings on Solaris and Linux, most particularly:
1) Implicit declaration of function. 2) Possibly unitialized variables. These warnings have indicated some real problems in the code, so many changes are not just to silence the warnings, but to fix the problems. Others were inocuous, but the warnings were silenced to reduce the noise.
Diffstat (limited to 'security/nss/lib/ckfw')
-rw-r--r--security/nss/lib/ckfw/ckfwm.h6
-rw-r--r--security/nss/lib/ckfw/sessobj.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/security/nss/lib/ckfw/ckfwm.h b/security/nss/lib/ckfw/ckfwm.h
index 82fd74830..615efe2b6 100644
--- a/security/nss/lib/ckfw/ckfwm.h
+++ b/security/nss/lib/ckfw/ckfwm.h
@@ -158,4 +158,10 @@ nssCKFWHash_Iterate
void *closure
);
+NSS_EXTERN void
+nssSetLockArgs(
+ CK_C_INITIALIZE_ARGS_PTR pInitArgs
+);
+
+
#endif /* CKFWM_H */
diff --git a/security/nss/lib/ckfw/sessobj.c b/security/nss/lib/ckfw/sessobj.c
index 7e683fd96..6851c1b6e 100644
--- a/security/nss/lib/ckfw/sessobj.c
+++ b/security/nss/lib/ckfw/sessobj.c
@@ -103,6 +103,7 @@ nss_ckmdSessionObject_remove_pointer
return CKR_OK;
}
+#ifdef NSS_DEBUG
static CK_RV
nss_ckmdSessionObject_verifyPointer
(
@@ -111,6 +112,7 @@ nss_ckmdSessionObject_verifyPointer
{
return CKR_OK;
}
+#endif
#endif /* DEBUG */
@@ -819,6 +821,7 @@ nss_ckmdFindSessionObjects_remove_pointer
return CKR_OK;
}
+#ifdef NSS_DEBUG
static CK_RV
nss_ckmdFindSessionObjects_verifyPointer
(
@@ -827,6 +830,7 @@ nss_ckmdFindSessionObjects_verifyPointer
{
return CKR_OK;
}
+#endif
#endif /* DEBUG */