aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2018-05-23 17:01:28 +0000
committerMark Johnston <markj@FreeBSD.org>2018-05-23 17:01:28 +0000
commit253168632983a9185c7a11f0244dceb8973daa2d (patch)
tree9955dbee9f82344d10c0241b9a72911bbd77e4ad /lib/libmd
parent246a61992401eb0a9407d1da6e8dfd9fc67d5604 (diff)
Notes
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/Makefile2
-rw-r--r--lib/libmd/mdXhl.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 96dfd6dbea76b..98c352917dba0 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -15,7 +15,7 @@ SRCS= md4c.c md5c.c md4hl.c md5hl.c \
INCS= md4.h md5.h ripemd.h sha.h sha256.h sha384.h sha512.h sha512t.h \
skein.h skein_port.h skein_freebsd.h skein_iv.h
-WARNS?= 1
+WARNS?= 0
MAN+= md4.3 md5.3 ripemd.3 sha.3 sha256.3 sha512.3 skein.3
MLINKS+=md4.3 MD4Init.3 md4.3 MD4Update.3 md4.3 MD4Final.3
diff --git a/lib/libmd/mdXhl.c b/lib/libmd/mdXhl.c
index 7b990b676e3e3..983ea8add989d 100644
--- a/lib/libmd/mdXhl.c
+++ b/lib/libmd/mdXhl.c
@@ -54,7 +54,8 @@ MDXFdChunk(int fd, char *buf, off_t ofs, off_t len)
{
unsigned char buffer[16*1024];
MDX_CTX ctx;
- int readrv;
+ struct stat stbuf;
+ int readrv, e;
off_t remain;
if (len < 0) {