=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/calendar/day.c,v retrieving revision 1.21 retrieving revision 1.24 diff -u -r1.21 -r1.24 --- src/usr.bin/calendar/day.c 2008/04/13 00:22:17 1.21 +++ src/usr.bin/calendar/day.c 2013/04/02 04:40:21 1.24 @@ -1,4 +1,4 @@ -/* $OpenBSD: day.c,v 1.21 2008/04/13 00:22:17 djm Exp $ */ +/* $OpenBSD: day.c,v 1.24 2013/04/02 04:40:21 deraadt Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -29,20 +29,6 @@ * SUCH DAMAGE. */ -#ifndef lint -static const char copyright[] = -"@(#) Copyright (c) 1989, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ - -#ifndef lint -#if 0 -static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; -#else -static const char rcsid[] = "$OpenBSD: day.c,v 1.21 2008/04/13 00:22:17 djm Exp $"; -#endif -#endif /* not lint */ - #include #include @@ -58,6 +44,8 @@ #include "pathnames.h" #include "calendar.h" +extern struct iovec header[]; + #define WEEKLY 1 #define MONTHLY 2 #define YEARLY 3 @@ -237,7 +225,7 @@ } #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));