From 8f0374166d477e9ee2d64ee7bfe75b537fb5382a Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Sun, 1 Oct 2006 11:49:27 +0000 Subject: Initialize a pointer to NULL and cast away a warning. bug #332101. Fix 2006-10-01 Kjartan Maraas * lib/e-asn1-object.c: (build_from_der): Initialize a pointer to NULL and cast away a warning. bug #332101. * lib/e-pkcs12.c: (prompt_for_password), (nickname_collision): Fix some signed/unsigned warnings. bug #332101. svn path=/trunk/; revision=32840 --- smime/lib/e-pkcs12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smime/lib/e-pkcs12.c') diff --git a/smime/lib/e-pkcs12.c b/smime/lib/e-pkcs12.c index 6830b69df3..be5d16138a 100644 --- a/smime/lib/e-pkcs12.c +++ b/smime/lib/e-pkcs12.c @@ -226,7 +226,7 @@ prompt_for_password (char *title, char *prompt, SECItem *pwd) if (passwd) { size_t len = strlen (passwd); const char *inptr = passwd; - char *outptr; + unsigned char *outptr; gunichar2 c; SECITEM_AllocItem(NULL, pwd, sizeof (gunichar2) * (len + 1)); @@ -414,7 +414,7 @@ nickname_collision(SECItem *oldNick, PRBool *cancel, void *wincx) new_nick = PR_Malloc (sizeof (SECItem)); new_nick->type = siAsciiString; - new_nick->data = nickname; + new_nick->data = (unsigned char *)nickname; new_nick->len = strlen((char*)new_nick->data); return new_nick; } -- cgit v1.2.3