=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cal/cal.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- src/usr.bin/cal/cal.c 2003/06/03 02:56:06 1.9 +++ src/usr.bin/cal/cal.c 2003/06/10 22:20:45 1.10 @@ -1,4 +1,4 @@ -/* $OpenBSD: cal.c,v 1.9 2003/06/03 02:56:06 millert Exp $ */ +/* $OpenBSD: cal.c,v 1.10 2003/06/10 22:20:45 deraadt Exp $ */ /* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)cal.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: cal.c,v 1.9 2003/06/03 02:56:06 millert Exp $"; +static char rcsid[] = "$OpenBSD: cal.c,v 1.10 2003/06/10 22:20:45 deraadt Exp $"; #endif #endif /* not lint */ @@ -134,9 +134,7 @@ void yearly(int); int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { struct tm *local_time; time_t now; @@ -196,8 +194,7 @@ #define J_HEAD_SEP 2 void -monthly(month, year) - int month, year; +monthly(int month, int year) { int col, row, len, days[MAXDAYS]; char *p, lineout[30]; @@ -219,8 +216,7 @@ } void -j_yearly(year) - int year; +j_yearly(int year) { int col, *dp, i, month, row, which_cal; int days[12][MAXDAYS]; @@ -254,8 +250,7 @@ } void -yearly(year) - int year; +yearly(int year) { int col, *dp, i, month, row, which_cal; int days[12][MAXDAYS]; @@ -297,9 +292,7 @@ * builds that array for any month from Jan. 1 through Dec. 9999. */ void -day_array(month, year, days) - int month, year; - int *days; +day_array(int month, int year, int *days) { int day, dw, dm; @@ -321,8 +314,7 @@ * return the 1 based day number within the year */ int -day_in_year(day, month, year) - int day, month, year; +day_in_year(int day, int month, int year) { int i, leap; @@ -340,8 +332,7 @@ * missing days. */ int -day_in_week(day, month, year) - int day, month, year; +day_in_week(int day, int month, int year) { long temp; @@ -355,9 +346,7 @@ } void -ascii_day(p, day) - char *p; - int day; +ascii_day(char *p, int day) { int display, val; static char *aday[] = { @@ -397,8 +386,7 @@ } void -trim_trailing_spaces(s) - char *s; +trim_trailing_spaces(char *s) { char *p; @@ -412,10 +400,7 @@ } void -center(str, len, separate) - char *str; - int len; - int separate; +center(char *str, int len, int separate) { len -= strlen(str); @@ -425,7 +410,7 @@ } void -usage() +usage(void) { (void)fprintf(stderr, "usage: cal [-jy] [[month] year]\n");