From 95dc05bc6d0dfe0f3f3681f5e27afbc3f7a35eea Mon Sep 17 00:00:00 2001 From: Ulf Möller Date: Tue, 20 Apr 1999 22:50:42 +0000 Subject: Fix lots of warnings. Submitted by: Richard Levitte --- crypto/des/enc_writ.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crypto/des/enc_writ.c') diff --git a/crypto/des/enc_writ.c b/crypto/des/enc_writ.c index 238c0a9c09..6690ff61d7 100644 --- a/crypto/des/enc_writ.c +++ b/crypto/des/enc_writ.c @@ -88,15 +88,15 @@ int des_enc_write(int fd, const char *buf, int len, des_key_schedule sched, long rnum; int i,j,k,outnum; - static char *outbuf=NULL; - char shortbuf[8]; + static unsigned char *outbuf=NULL; + unsigned char shortbuf[8]; char *p; - const char *cp; + const unsigned char *cp; static int start=1; if (outbuf == NULL) { - outbuf=(char *)Malloc(BSIZE+HDRSIZE); + outbuf=(unsigned char *)Malloc(BSIZE+HDRSIZE); if (outbuf == NULL) return(-1); } /* If we are sending less than 8 bytes, the same char will look @@ -138,7 +138,7 @@ int des_enc_write(int fd, const char *buf, int len, des_key_schedule sched, } else { - cp=buf; + cp=(unsigned char*)buf; rnum=((len+7)/8*8); /* round up to nearest eight */ } -- cgit v1.2.3