summaryrefslogtreecommitdiffstats
path: root/sbin/md5
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-10-28 00:01:58 +0000
committerdillon <dillon@FreeBSD.org>2001-10-28 00:01:58 +0000
commit827bb2a335ccef2a6cca7d86bdc0a7b9e6661491 (patch)
tree9760b0ab4e2c3aa3f2281516f52640767fbe4a54 /sbin/md5
parent1db36b043890fb5ab974c20c235530931dbde317 (diff)
downloadFreeBSD-src-827bb2a335ccef2a6cca7d86bdc0a7b9e6661491.zip
FreeBSD-src-827bb2a335ccef2a6cca7d86bdc0a7b9e6661491.tar.gz
Add missing cast for improper time_t use in computation.
Diffstat (limited to 'sbin/md5')
-rw-r--r--sbin/md5/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c
index c1e1eef..5e3c9cb 100644
--- a/sbin/md5/md5.c
+++ b/sbin/md5/md5.c
@@ -162,7 +162,7 @@ MDTimeTrial(void)
* Anderson, ric@Artisoft.COM.) */
printf
("Speed = %ld bytes/second\n",
- (long) TEST_BLOCK_LEN * (long) TEST_BLOCK_COUNT / ((endTime - startTime) != 0 ? (endTime - startTime) : 1));
+ (long) TEST_BLOCK_LEN * (long) TEST_BLOCK_COUNT / ((endTime - startTime) != 0 ? (long)(endTime - startTime) : 1));
}
/*
* Digests a reference suite of strings and prints the results.
OpenPOWER on IntegriCloud