summaryrefslogtreecommitdiffstats
path: root/sbin/md5
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-21 00:51:14 +0000
committerbillf <billf@FreeBSD.org>1999-07-21 00:51:14 +0000
commit95fd90d5ae9179fada00842b10016f0509ec1780 (patch)
tree06a5dd627f8f080f2b115b05ee79a588a0f83a32 /sbin/md5
parent22f56109bab1f14a1a0843f99d13408802e847b0 (diff)
downloadFreeBSD-src-95fd90d5ae9179fada00842b10016f0509ec1780.zip
FreeBSD-src-95fd90d5ae9179fada00842b10016f0509ec1780.tar.gz
Since we are using strlen() let's assign it to the correct type and
include the proper header.
Diffstat (limited to 'sbin/md5')
-rw-r--r--sbin/md5/md5.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c
index 57776b4..e681272 100644
--- a/sbin/md5/md5.c
+++ b/sbin/md5/md5.c
@@ -19,7 +19,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: md5.c,v 1.13 1998/07/06 07:04:50 charnier Exp $";
+ "$Id: md5.c,v 1.14 1999/05/01 14:54:21 kris Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -28,6 +28,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <time.h>
#include <unistd.h>
+#include <string.h>
#include "global.h"
@@ -100,7 +101,7 @@ static void
MDString(string)
char *string;
{
- unsigned int len = strlen(string);
+ size_t len = strlen(string);
char buf[33];
printf("MD5 (\"%s\") = %s\n", string, MD5Data(string, len, buf));
OpenPOWER on IntegriCloud