diff options
author | jb <jb@FreeBSD.org> | 1998-01-25 08:59:08 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-01-25 08:59:08 +0000 |
commit | 4fc699e2cf8ba9c67a9db78ccb922ea162710f40 (patch) | |
tree | 1e88073652fbf5654fad514af32c916a607711ef /bin/date | |
parent | 548a4364867bd7b512d2b7138120d427058d0c6b (diff) | |
download | FreeBSD-src-4fc699e2cf8ba9c67a9db78ccb922ea162710f40.zip FreeBSD-src-4fc699e2cf8ba9c67a9db78ccb922ea162710f40.tar.gz |
Cast a size_t to a long to avoid a gcc warning.
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 f5f7ead..a66d53f 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: date.c,v 1.21 1997/10/03 12:49:28 danny Exp $ + * $Id: date.c,v 1.22 1997/12/11 02:38:56 brian Exp $ */ #ifndef lint @@ -187,9 +187,9 @@ setthetime(fmt, p) lt = localtime(&tval); return; } else if (*t != '\0') - fprintf(stderr, "Warning: Ignoring %d extraneous" + fprintf(stderr, "Warning: Ignoring %ld extraneous" " characters in date string (%s)\n", - strlen(t), t); + (long) strlen(t), t); } else { for (t = p, dot = NULL; *t; ++t) { if (isdigit(*t)) |