# warning fixes for: # arcfour_s2k.c:46: warning: pointer targets in passing argument 2 of 'asctouni' differ in signedness # # ycipher.c:77: warning: pointer targets in assignment differ in signedness # --- src/lib/crypto/arcfour/arcfour_s2k.c +++ src/lib/crypto/arcfour/arcfour_s2k.c 2006/06/21 10:55:47 @@ -43,7 +43,7 @@ return ENOMEM; /* make the string. start by creating the unicode version of the password*/ - asctouni(copystr, string->data, slen ); + asctouni(copystr, (unsigned char*)string->data, slen ); /* the actual MD4 hash of the data */ krb5_MD4Init(&md4_context); --- src/lib/crypto/yarrow/ycipher.c +++ src/lib/crypto/yarrow/ycipher.c 2006/06/21 10:56:48 @@ -74,7 +74,7 @@ const struct krb5_enc_provider *enc = &yarrow_enc_provider; ind.data = (char *) in; ind.length = CIPHER_BLOCK_SIZE; - outd.data = out; + outd.data = (char*)out; outd.length = CIPHER_BLOCK_SIZE; ret = enc->encrypt (&ctx->key, 0, &ind, &outd); if (ret)