diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-25 15:41:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-25 15:41:08 +0000 |
commit | 462a5b31673474830f69aabd0be0329cb05b4c0a (patch) | |
tree | d96e41dfb2c649d07bd08eeca30ae98cce83b1b8 /bin/ps/ps.c | |
parent | 88a093d815fbf2e2a4bdbb7dd0875a9017f5397b (diff) |
various small lint cleanups; ok otto
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r-- | bin/ps/ps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 435983d6eb1..ef1cd971d03 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ps.c,v 1.40 2004/11/24 19:17:10 deraadt Exp $ */ +/* $OpenBSD: ps.c,v 1.41 2006/04/25 15:41:07 deraadt Exp $ */ /* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: ps.c,v 1.40 2004/11/24 19:17:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ps.c,v 1.41 2006/04/25 15:41:07 deraadt Exp $"; #endif #endif /* not lint */ @@ -117,9 +117,9 @@ main(int argc, char *argv[]) char *nlistf, *memf, *swapf, errbuf[_POSIX2_LINE_MAX]; size_t size; - if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && - ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && - ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || + if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) == -1 && + ioctl(STDERR_FILENO, TIOCGWINSZ, &ws) == -1 && + ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1) || ws.ws_col == 0) termwidth = 79; else |