From 8753ac614e51e122174b5b0324f7cc7482b93b2d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 3 Oct 2014 22:15:33 +0200 Subject: signfs: fix signedness warnings when calling MD5_Update(). This code is not maintained anymore, but at least let's stop these annoying build warnings. --- signfs/signfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signfs/signfs.c b/signfs/signfs.c index efa7e97..5d542f4 100644 --- a/signfs/signfs.c +++ b/signfs/signfs.c @@ -179,7 +179,7 @@ t_fileinfo *fill_fileinfo(char *filename, char *pfilename, pferror("open(%s) for checksum",SPD(filename)); } else { MD5_Init(&c); - while ((s=read(fd,blk,8192))>0) MD5_Update(&c,blk,s); + while ((s=read(fd,blk,8192))>0) MD5_Update(&c,(unsigned char *)blk,s); MD5_Final(data->md5sum,&c); close(fd); data->have_md5=1; @@ -191,7 +191,7 @@ t_fileinfo *fill_fileinfo(char *filename, char *pfilename, } else { blk[l]=0; MD5_Init(&c); - MD5_Update(&c,blk,l); + MD5_Update(&c,(unsigned char *)blk,l); MD5_Final(data->md5sum,&c); data->have_md5=1; data->link=strdup(blk); -- 1.7.12.1