From 484a709abe5050e7c38f42ace6ae35b77a162ab3 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 28 Oct 2001 00:01:58 +0000 Subject: [PATCH] Add missing cast for improper time_t use in computation. --- sbin/md5/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index c1e1eef45a21..5e3c9cb15cfa 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.