Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] script: don't assume time_t is compatible with long
@ 2015-10-15 13:06 Andreas Schwab
  2015-10-16  1:12 ` Isaac Dunham
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2015-10-15 13:06 UTC (permalink / raw)
  To: util-linux

Signed-off-by: Andreas Schwab <schwab@suse.de>
---
 term-utils/script.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/term-utils/script.c b/term-utils/script.c
index eb4ddc3..ad252a3 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -141,7 +141,7 @@ static void script_init_debug(void)
 static inline time_t script_time(time_t *t)
 {
 	const char *str = getenv("SCRIPT_TEST_SECOND_SINCE_EPOCH");
-	time_t sec;
+	long sec;
 
 	if (str && sscanf(str, "%ld", &sec) == 1)
 		return sec;
-- 
2.6.1


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-16 10:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 13:06 [PATCH] script: don't assume time_t is compatible with long Andreas Schwab
2015-10-16  1:12 ` Isaac Dunham
2015-10-16 10:10   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox