diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-07-01 19:46:36 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-07-01 19:46:36 +0000 |
commit | 00858ccd888200a9c1e22e6b4fc7d797c8c28c26 (patch) | |
tree | 970094865ccda8b53da14ebaa2aeddc9c76800c5 /sys/kern/tty_subr.c | |
parent | 1c6989fa7e54e08aa6c9e238298b3c511bf73660 (diff) | |
download | src-00858ccd888200a9c1e22e6b4fc7d797c8c28c26.tar.gz src-00858ccd888200a9c1e22e6b4fc7d797c8c28c26.zip |
Quiet warnings on an Alpha. CBSIZE has long type and causes the other
ints to promote to long.
Notes
Notes:
svn path=/head/; revision=48408
Diffstat (limited to 'sys/kern/tty_subr.c')
-rw-r--r-- | sys/kern/tty_subr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c index 593d00cc75e2..b1e5edaa5c37 100644 --- a/sys/kern/tty_subr.c +++ b/sys/kern/tty_subr.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tty_subr.c,v 1.29 1998/04/15 17:46:27 bde Exp $ + * $Id: tty_subr.c,v 1.30 1998/07/15 02:32:12 bde Exp $ */ /* @@ -61,10 +61,12 @@ static void cblock_free_cblocks __P((int number)); DB_SHOW_COMMAND(cbstat, cbstat) { + int cbsize = CBSIZE; + printf( "tot = %d (active = %d, free = %d (reserved = %d, slush = %d))\n", - ctotcount * CBSIZE, ctotcount * CBSIZE - cfreecount, cfreecount, - cfreecount - cslushcount * CBSIZE, cslushcount * CBSIZE); + ctotcount * cbsize, ctotcount * cbsize - cfreecount, cfreecount, + cfreecount - cslushcount * cbsize, cslushcount * cbsize); } #endif /* DDB */ |