svn commit: r364803 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Wed Aug 26 06:41:18 UTC 2020


Author: pho
Date: Wed Aug 26 06:41:18 2020
New Revision: 364803
URL: https://svnweb.freebsd.org/changeset/base/364803

Log:
  Fix a compiler warning.

Modified:
  user/pho/stress2/misc/sendfile14.sh

Modified: user/pho/stress2/misc/sendfile14.sh
==============================================================================
--- user/pho/stress2/misc/sendfile14.sh	Wed Aug 26 04:01:06 2020	(r364802)
+++ user/pho/stress2/misc/sendfile14.sh	Wed Aug 26 06:41:18 2020	(r364803)
@@ -323,7 +323,7 @@ move(void *arg)
 	while (active >= MAXTHREADS)
 		usleep(100000);
 	active++;
-	num = (int)arg;
+	num = (int)(long)arg;
 
 	sprintf(ifile, "%s/f%06d.%06d", fromdir, getpid(), num);
 	writer(ifile);


More information about the svn-src-user mailing list