Module Name:    src
Committed By:   martin
Date:           Sat Jan 26 18:14:22 UTC 2019

Modified Files:
        src/bin/sleep: sleep.c

Log Message:
Explicitly cast time_t to match format string - should fix the build on
some 32bit architectures.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/bin/sleep/sleep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sleep/sleep.c
diff -u src/bin/sleep/sleep.c:1.27 src/bin/sleep/sleep.c:1.28
--- src/bin/sleep/sleep.c:1.27	Sat Jan 26 15:20:50 2019
+++ src/bin/sleep/sleep.c	Sat Jan 26 18:14:22 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: sleep.c,v 1.27 2019/01/26 15:20:50 kre Exp $ */
+/* $NetBSD: sleep.c,v 1.28 2019/01/26 18:14:22 martin Exp $ */
 
 /*
  * Copyright (c) 1988, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
 #if 0
 static char sccsid[] = "@(#)sleep.c	8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: sleep.c,v 1.27 2019/01/26 15:20:50 kre Exp $");
+__RCSID("$NetBSD: sleep.c,v 1.28 2019/01/26 18:14:22 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -202,7 +202,8 @@ report(const time_t remain, const time_t
 	else if (remain < 2000)
 		warnx("Between %ld and %ld seconds left"
 		    " out of the original %g%s",
-		    remain, remain + 1, (double)original, msg);
+		    (long)remain, (long)remain + 1, (double)original,
+		    msg);
 	else if ((original - remain) < 100000 && (original-remain) < original/8)
 		warnx("Have waited only %d seconds of the original %g",
 			(int)(original - remain), (double)original);

Reply via email to