diff options
author | phk <phk@FreeBSD.org> | 1995-02-24 08:51:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-02-24 08:51:34 +0000 |
commit | cbb4f636288c8b47bd539235ad8dad3ff401cb2b (patch) | |
tree | 1da5c69ee18b64e7a3a9454f9470ff1c8de85104 /lib | |
parent | 5ca4449181894449d401ac7032b982b4b7a66778 (diff) | |
download | FreeBSD-src-cbb4f636288c8b47bd539235ad8dad3ff401cb2b.zip FreeBSD-src-cbb4f636288c8b47bd539235ad8dad3ff401cb2b.tar.gz |
Clean a bunch of -Wall warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libmd/md2c.c | 1 | ||||
-rw-r--r-- | lib/libmd/md4c.c | 1 | ||||
-rw-r--r-- | lib/libmd/md5c.c | 1 | ||||
-rw-r--r-- | lib/libmd/mdXhl.c | 8 |
4 files changed, 7 insertions, 4 deletions
diff --git a/lib/libmd/md2c.c b/lib/libmd/md2c.c index a9c0607..d311758 100644 --- a/lib/libmd/md2c.c +++ b/lib/libmd/md2c.c @@ -21,6 +21,7 @@ */ #include "md2.h" +#include <string.h> typedef unsigned char *POINTER; diff --git a/lib/libmd/md4c.c b/lib/libmd/md4c.c index 0f42905..7e90ec3 100644 --- a/lib/libmd/md4c.c +++ b/lib/libmd/md4c.c @@ -24,6 +24,7 @@ */ #include "md4.h" +#include <string.h> typedef unsigned char *POINTER; typedef unsigned short int UINT2; diff --git a/lib/libmd/md5c.c b/lib/libmd/md5c.c index 9abf6f1..5c35b5b 100644 --- a/lib/libmd/md5c.c +++ b/lib/libmd/md5c.c @@ -25,6 +25,7 @@ documentation and/or software. */ #include "md5.h" +#include <string.h> typedef unsigned char *POINTER; typedef unsigned short int UINT2; diff --git a/lib/libmd/mdXhl.c b/lib/libmd/mdXhl.c index dafaec5..76152ca 100644 --- a/lib/libmd/mdXhl.c +++ b/lib/libmd/mdXhl.c @@ -1,5 +1,4 @@ /* mdXhl.c -/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you @@ -16,6 +15,9 @@ #include <errno.h> #include "mdX.h" #include <sys/file.h> +#include <sys/types.h> +#include <sys/uio.h> +#include <unistd.h> char * MDXEnd(MDX_CTX *ctx) @@ -38,9 +40,8 @@ MDXEnd(MDX_CTX *ctx) char * MDXFile (char *filename) { - unsigned char digest[16],buffer[BUFSIZ]; + unsigned char buffer[BUFSIZ]; MDX_CTX ctx; - char *p; int f,i,j; MDXInit(&ctx); @@ -59,7 +60,6 @@ MDXFile (char *filename) char * MDXData (const unsigned char *data, unsigned int len) { - unsigned char digest[16]; MDX_CTX ctx; MDXInit(&ctx); |