diff options
author | peter <peter@FreeBSD.org> | 1999-07-01 19:46:36 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-07-01 19:46:36 +0000 |
commit | f387b3be3def8d30d9e55922025a4016b0b90ae5 (patch) | |
tree | 30bc07d2887c42164f009ac82818731d0c89c16c | |
parent | 700ead8c3e233e085c99817b4950784e1e253ba4 (diff) | |
download | FreeBSD-src-f387b3be3def8d30d9e55922025a4016b0b90ae5.zip FreeBSD-src-f387b3be3def8d30d9e55922025a4016b0b90ae5.tar.gz |
Quiet warnings on an Alpha. CBSIZE has long type and causes the other
ints to promote to long.
-rw-r--r-- | sys/kern/subr_clist.c | 8 | ||||
-rw-r--r-- | sys/kern/tty_subr.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c index 593d00c..b1e5eda 100644 --- a/sys/kern/subr_clist.c +++ b/sys/kern/subr_clist.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 */ diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c index 593d00c..b1e5eda 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 */ |