summaryrefslogtreecommitdiff
path: root/security/nss/cmd/tests/dertimetest.c
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2009-12-21 22:53:59 +0000
committerwtc%google.com <devnull@localhost>2009-12-21 22:53:59 +0000
commit22a92d2b25796cd25f0cfaa825e646b44ae93f84 (patch)
tree6c659a38d187439986a0fcc98efff8a2d5424bc0 /security/nss/cmd/tests/dertimetest.c
parent099af9ed365160d67ce5f65ee5a97a9b63d9b59a (diff)
downloadnss-hg-22a92d2b25796cd25f0cfaa825e646b44ae93f84.tar.gz
Bug 536023: Add (unsigned char *) casts to fix compiler warnings.
Diffstat (limited to 'security/nss/cmd/tests/dertimetest.c')
-rw-r--r--security/nss/cmd/tests/dertimetest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/cmd/tests/dertimetest.c b/security/nss/cmd/tests/dertimetest.c
index a451435da..bb13a7985 100644
--- a/security/nss/cmd/tests/dertimetest.c
+++ b/security/nss/cmd/tests/dertimetest.c
@@ -50,7 +50,7 @@ int main()
/* A UTCTime string with an embedded null. */
badTime.type = siBuffer;
- badTime.data = "091219000000Z\0junkjunkjunkjunkjunkjunk";
+ badTime.data = (unsigned char *)"091219000000Z\0junkjunkjunkjunkjunkjunk";
badTime.len = 38;
rv = DER_UTCTimeToTime(&prtime, &badTime);
if (rv == SECSuccess) {
@@ -68,7 +68,7 @@ int main()
/* A GeneralizedTime string with an embedded null. */
badTime.type = siBuffer;
- badTime.data = "20091219000000Z\0junkjunkjunkjunkjunkjunk";
+ badTime.data = (unsigned char *)"20091219000000Z\0junkjunkjunkjunkjunkjunk";
badTime.len = 40;
rv = DER_GeneralizedTimeToTime(&prtime, &badTime);
if (rv == SECSuccess) {