diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-02 04:40:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-02 04:40:22 +0000 |
commit | 90662510935a246ee6f2715dbb2df274301e01d0 (patch) | |
tree | baf455f74055daff1bd5ce3f8e248f92037d5b09 /usr.bin/calendar | |
parent | 8f0c1ed3f11bc83d96bb80b4c6bf9368ccd0f683 (diff) |
handle large time_t in DEBUG code
Diffstat (limited to 'usr.bin/calendar')
-rw-r--r-- | usr.bin/calendar/day.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/calendar/day.c b/usr.bin/calendar/day.c index 0a3a13f9b36..2187340762e 100644 --- a/usr.bin/calendar/day.c +++ b/usr.bin/calendar/day.c @@ -1,4 +1,4 @@ -/* $OpenBSD: day.c,v 1.23 2010/04/28 18:20:15 jsg Exp $ */ +/* $OpenBSD: day.c,v 1.24 2013/04/02 04:40:21 deraadt Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -225,7 +225,7 @@ Mktime(char *date) } #if DEBUG - printf("Mktime: %d %d %d %s\n", (int)mktime(&tm), (int)t, len, + printf("Mktime: %d %lld %d %s\n", (int)mktime(&tm), (long long)t, len, asctime(&tm)); #endif return(mktime(&tm)); |