diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-12-28 19:17:29 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-12-28 19:17:29 +0000 |
commit | 734f0e43eb9ebd6c76d5836c1d9affa659f7117f (patch) | |
tree | 9c490568b677ef6ff284d73d0e3ee8109e04f873 /bin/date | |
parent | d487a5564a8e7d63b8382543924391a1ce5dccaa (diff) |
printf field widths are always int, so add a cast to remove
"warning: field width is not type int"
"looks good" otto@
Diffstat (limited to 'bin/date')
-rw-r--r-- | bin/date/date.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/date/date.c b/bin/date/date.c index 15ff8fa0415..5820adb2da8 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -1,4 +1,4 @@ -/* $OpenBSD: date.c,v 1.30 2007/10/16 20:19:26 sobrado Exp $ */ +/* $OpenBSD: date.c,v 1.31 2007/12/28 19:17:28 chl Exp $ */ /* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: date.c,v 1.30 2007/10/16 20:19:26 sobrado Exp $"; +static char rcsid[] = "$OpenBSD: date.c,v 1.31 2007/12/28 19:17:28 chl Exp $"; #endif #endif /* not lint */ @@ -268,6 +268,6 @@ usage(void) "usage: %s [-ajnu] [-d dst] [-r seconds] [-t minutes_west] [+format]\n", __progname); (void)fprintf(stderr, - "%-*s[[[[[[cc]yy]mm]dd]HH]MM[.SS]]\n", strlen(__progname) + 8, ""); + "%-*s[[[[[[cc]yy]mm]dd]HH]MM[.SS]]\n", (int)strlen(__progname) + 8, ""); exit(1); } |