aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des/enc_writ.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-20 22:50:42 +0000
committerUlf Möller <ulf@openssl.org>1999-04-20 22:50:42 +0000
commit95dc05bc6d0dfe0f3f3681f5e27afbc3f7a35eea (patch)
tree6bdbca71df2722da6b3c27c8cc2a0b00115edaa9 /crypto/des/enc_writ.c
parentf36cd05b22a587e552c97797b54fd07bc0762446 (diff)
downloadopenssl-95dc05bc6d0dfe0f3f3681f5e27afbc3f7a35eea.tar.gz
Fix lots of warnings.
Submitted by: Richard Levitte <levitte@stacken.kth.se>
Diffstat (limited to 'crypto/des/enc_writ.c')
-rw-r--r--crypto/des/enc_writ.c10
1 files changed, 5 insertions, 5 deletions
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 */
}