diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-24 03:44:15 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-24 03:44:15 +0000 |
commit | d270169aea44355addaa1bb4be16217df3ccd855 (patch) | |
tree | 6acc1f1e6642ef37b33849c58febe980f0e3b888 | |
parent | ac9d376cd0674c2b597bbdef87e3c6baa200433d (diff) |
KNF, no binary change.
From Han Boetes.
-rw-r--r-- | usr.bin/cal/cal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cal/cal.c b/usr.bin/cal/cal.c index 091cb691744..56c26e6d447 100644 --- a/usr.bin/cal/cal.c +++ b/usr.bin/cal/cal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cal.c,v 1.18 2005/12/08 14:54:30 jmc Exp $ */ +/* $OpenBSD: cal.c,v 1.19 2006/03/24 03:44:14 ray Exp $ */ /* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)cal.c 8.4 (Berkeley) 4/2/94"; #else -static const char rcsid[] = "$OpenBSD: cal.c,v 1.18 2005/12/08 14:54:30 jmc Exp $"; +static const char rcsid[] = "$OpenBSD: cal.c,v 1.19 2006/03/24 03:44:14 ray Exp $"; #endif #endif /* not lint */ @@ -208,7 +208,7 @@ monthly(int month, int year) char *p, lineout[30]; day_array(month, year, days); - (void)snprintf(lineout, sizeof lineout, "%s %d", + (void)snprintf(lineout, sizeof(lineout), "%s %d", month_names[month - 1], year); len = strlen(lineout); (void)printf("%*s%s\n%s\n", @@ -231,7 +231,7 @@ j_yearly(int year) int days[12][MAXDAYS]; char *p, lineout[80]; - (void)snprintf(lineout, sizeof lineout, "%d", year); + (void)snprintf(lineout, sizeof(lineout), "%d", year); center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0); (void)printf("\n\n"); for (i = 0; i < 12; i++) @@ -265,7 +265,7 @@ yearly(int year) int days[12][MAXDAYS]; char *p, lineout[80]; - (void)snprintf(lineout, sizeof lineout, "%d", year); + (void)snprintf(lineout, sizeof(lineout), "%d", year); center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0); (void)printf("\n\n"); for (i = 0; i < 12; i++) |