diff options
author | 2013-04-02 04:40:21 +0000 | |
---|---|---|
committer | 2013-04-02 04:40:21 +0000 | |
commit | fab9a59cd9ca6221dff7e52cf17ba34831679a7f (patch) | |
tree | 4823cb1070797ef1dbafaa4c16ec8e079957741c | |
parent | handle time_t which is not u_int32_t (diff) | |
download | wireguard-openbsd-fab9a59cd9ca6221dff7e52cf17ba34831679a7f.tar.xz wireguard-openbsd-fab9a59cd9ca6221dff7e52cf17ba34831679a7f.zip |
handle large time_t in DEBUG code
-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)); |