1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

Quiet warnings on an Alpha. CBSIZE has long type and causes the other

ints to promote to long.
This commit is contained in:
Peter Wemm 1999-07-01 19:46:36 +00:00
parent 1c6989fa7e
commit 00858ccd88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48408
2 changed files with 10 additions and 6 deletions

View File

@ -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 */

View File

@ -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 */