diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-12 05:17:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-12 05:17:34 +0000 |
commit | 937c9a0f84db15a0a64ed0419a42da3a34d96cde (patch) | |
tree | b6b3bfb6f6bbc506426154fc8294316054abb45f /usr.bin/finger/lprint.c | |
parent | 4e5dd980fd1238d635621b9bba7d99533aababd6 (diff) |
first pass at a -Wall cleanup
Diffstat (limited to 'usr.bin/finger/lprint.c')
-rw-r--r-- | usr.bin/finger/lprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c index 830223a4db2..b340f30202d 100644 --- a/usr.bin/finger/lprint.c +++ b/usr.bin/finger/lprint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lprint.c,v 1.4 1997/05/30 23:35:52 kstailey Exp $ */ +/* $OpenBSD: lprint.c,v 1.5 2001/07/12 05:17:04 deraadt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -38,7 +38,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)lprint.c 5.13 (Berkeley) 10/31/90";*/ -static char rcsid[] = "$OpenBSD: lprint.c,v 1.4 1997/05/30 23:35:52 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: lprint.c,v 1.5 2001/07/12 05:17:04 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -169,7 +169,7 @@ lprint(pn) delta = gmtime(&w->idletime); if (delta->tm_yday || delta->tm_hour || delta->tm_min) { cpr += printf("%-*s idle ", - maxlen - strlen(w->tty) + 1, ","); + (int)(maxlen - strlen(w->tty) + 1), ","); if (delta->tm_yday > 0) { cpr += printf("%d day%s ", delta->tm_yday, |