Fix few compiler warnings on Tru64

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@143 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2002-01-06 21:26:07 +00:00
parent 859511f46c
commit f92775fabe
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ int ask_and_verify_pin_code(struct sc_pkcs15_card *p15card,
sprintf(errtext, "PIN code too long, max. %d digits", pinfo->stored_length);
continue;
}
r = sc_pkcs15_verify_pin(p15card, pinfo, buf, strlen(buf));
r = sc_pkcs15_verify_pin(p15card, pinfo, (const u8 *) buf, strlen(buf));
switch (r) {
case SC_ERROR_PIN_CODE_INCORRECT:
sprintf(errtext, "PIN code incorrect (%d %s left)",

View File

@ -150,7 +150,7 @@ NPP_New(NPMIMEType pluginType,
printf("Posting to '%s'\n", postUrl);
printf("Data to sign: %s\n", dataToSign);
printf("Signed: %s\n", b64data);
rv = post_data(instance, postUrl, "_self", strlen(b64data), b64data,
rv = post_data(instance, postUrl, "_self", strlen((char *) b64data), (char *) b64data,
fieldName);
printf("post_data returned %d\n", rv);
r = NPERR_NO_ERROR;