diff options
author | Ezra Peisach <epeisach@mit.edu> | 2000-07-29 01:46:30 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2000-07-29 01:46:30 +0000 |
commit | a8dad22e304556cabe700da992eed8cacaa8b273 (patch) | |
tree | 12c01f0787a18bbd709d13c8aaecb0e88d593bc9 /src/tests/asn.1/utility.c | |
parent | a537c97b83c67daf1689441ffcee557b852588b2 (diff) | |
download | krb5-a8dad22e304556cabe700da992eed8cacaa8b273.tar.gz krb5-a8dad22e304556cabe700da992eed8cacaa8b273.tar.xz krb5-a8dad22e304556cabe700da992eed8cacaa8b273.zip |
* utility.c: Add casts on types being sent to internal functions
* krb5_encode_test.c: Declare internal functions as static.
* ktest.c: Remove unused functions. Clean up compiler warnings.
* trval.c: Add proper prototype for declared functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12590 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/asn.1/utility.c')
-rw-r--r-- | src/tests/asn.1/utility.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/asn.1/utility.c b/src/tests/asn.1/utility.c index 739d63913..0831a0864 100644 --- a/src/tests/asn.1/utility.c +++ b/src/tests/asn.1/utility.c @@ -22,11 +22,11 @@ asn1_error_code asn1_krb5_data_unparse(code, s) }else{ int i; - *s = (char*)calloc(3*(code->length), sizeof(char)); + *s = (char*)calloc((size_t) 3*(code->length), sizeof(char)); if(*s == NULL) return ENOMEM; for(i = 0; i < code->length; i++){ - (*s)[3*i] = hexchar(((code->data)[i]&0xF0)>>4); - (*s)[3*i+1] = hexchar((code->data)[i]&0x0F); + (*s)[3*i] = hexchar((unsigned char) (((code->data)[i]&0xF0)>>4)); + (*s)[3*i+1] = hexchar((unsigned char) ((code->data)[i]&0x0F)); (*s)[3*i+2] = ' '; } (*s)[3*(code->length)-1] = '\0'; |