From: Ken Raeburn Date: Fri, 22 Jun 2001 03:21:31 +0000 (+0000) Subject: * checksum.c (krb5_dk_make_checksum): Cast 0x99 to char explicitly to silence warnings X-Git-Tag: krb5-1.3-alpha1~1313 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a953b87f34ef69d8821691b90360669886dd4fb;p=krb5.git * checksum.c (krb5_dk_make_checksum): Cast 0x99 to char explicitly to silence warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13473 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/dk/ChangeLog b/src/lib/crypto/dk/ChangeLog index af1ccab65..6ae4da7c1 100644 --- a/src/lib/crypto/dk/ChangeLog +++ b/src/lib/crypto/dk/ChangeLog @@ -1,3 +1,8 @@ +2001-06-21 Ken Raeburn + + * checksum.c (krb5_dk_make_checksum): Cast 0x99 to char explicitly + to silence warnings. + 2001-04-10 Ken Raeburn * checksum.c (krb5_dk_make_checksum): Add casts when mixing diff --git a/src/lib/crypto/dk/checksum.c b/src/lib/crypto/dk/checksum.c index efa3f2172..1769b5cce 100644 --- a/src/lib/crypto/dk/checksum.c +++ b/src/lib/crypto/dk/checksum.c @@ -81,7 +81,7 @@ krb5_dk_make_checksum(hash, key, usage, input, output) datain.data[2] = (usage>>8)&0xff; datain.data[3] = usage&0xff; - datain.data[4] = 0x99; + datain.data[4] = (char) 0x99; if ((ret = krb5_derive_key(enc, key, &kc, &datain)) != 0) goto cleanup;