From owner-svn-src-all@FreeBSD.ORG Thu Feb 26 10:28:32 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEF70106566B; Thu, 26 Feb 2009 10:28:32 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B3BDC8FC1B; Thu, 26 Feb 2009 10:28:32 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QASWnA024723; Thu, 26 Feb 2009 10:28:32 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1QASWsc024720; Thu, 26 Feb 2009 10:28:32 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200902261028.n1QASWsc024720@svn.freebsd.org> From: Ed Schouten Date: Thu, 26 Feb 2009 10:28:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189061 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 10:28:33 -0000 Author: ed Date: Thu Feb 26 10:28:32 2009 New Revision: 189061 URL: http://svn.freebsd.org/changeset/base/189061 Log: Use unsigned longs for the TTY's sysctl stats. Spotted by: clang Modified: head/sys/kern/tty_inq.c head/sys/kern/tty_outq.c head/sys/kern/tty_ttydisc.c Modified: head/sys/kern/tty_inq.c ============================================================================== --- head/sys/kern/tty_inq.c Thu Feb 26 10:14:10 2009 (r189060) +++ head/sys/kern/tty_inq.c Thu Feb 26 10:28:32 2009 (r189061) @@ -62,11 +62,11 @@ __FBSDID("$FreeBSD$"); */ /* Statistics. */ -static long ttyinq_nfast = 0; -SYSCTL_LONG(_kern, OID_AUTO, tty_inq_nfast, CTLFLAG_RD, +static unsigned long ttyinq_nfast = 0; +SYSCTL_ULONG(_kern, OID_AUTO, tty_inq_nfast, CTLFLAG_RD, &ttyinq_nfast, 0, "Unbuffered reads to userspace on input"); -static long ttyinq_nslow = 0; -SYSCTL_LONG(_kern, OID_AUTO, tty_inq_nslow, CTLFLAG_RD, +static unsigned long ttyinq_nslow = 0; +SYSCTL_ULONG(_kern, OID_AUTO, tty_inq_nslow, CTLFLAG_RD, &ttyinq_nslow, 0, "Buffered reads to userspace on input"); #define TTYINQ_QUOTESIZE (TTYINQ_DATASIZE / BMSIZE) Modified: head/sys/kern/tty_outq.c ============================================================================== --- head/sys/kern/tty_outq.c Thu Feb 26 10:14:10 2009 (r189060) +++ head/sys/kern/tty_outq.c Thu Feb 26 10:28:32 2009 (r189061) @@ -53,11 +53,11 @@ __FBSDID("$FreeBSD$"); */ /* Statistics. */ -static long ttyoutq_nfast = 0; -SYSCTL_LONG(_kern, OID_AUTO, tty_outq_nfast, CTLFLAG_RD, +static unsigned long ttyoutq_nfast = 0; +SYSCTL_ULONG(_kern, OID_AUTO, tty_outq_nfast, CTLFLAG_RD, &ttyoutq_nfast, 0, "Unbuffered reads to userspace on output"); -static long ttyoutq_nslow = 0; -SYSCTL_LONG(_kern, OID_AUTO, tty_outq_nslow, CTLFLAG_RD, +static unsigned long ttyoutq_nslow = 0; +SYSCTL_ULONG(_kern, OID_AUTO, tty_outq_nslow, CTLFLAG_RD, &ttyoutq_nslow, 0, "Buffered reads to userspace on output"); struct ttyoutq_block { Modified: head/sys/kern/tty_ttydisc.c ============================================================================== --- head/sys/kern/tty_ttydisc.c Thu Feb 26 10:14:10 2009 (r189060) +++ head/sys/kern/tty_ttydisc.c Thu Feb 26 10:28:32 2009 (r189061) @@ -48,11 +48,11 @@ __FBSDID("$FreeBSD$"); */ /* Statistics. */ -static long tty_nin = 0; -SYSCTL_LONG(_kern, OID_AUTO, tty_nin, CTLFLAG_RD, +static unsigned long tty_nin = 0; +SYSCTL_ULONG(_kern, OID_AUTO, tty_nin, CTLFLAG_RD, &tty_nin, 0, "Total amount of bytes received"); -static long tty_nout = 0; -SYSCTL_LONG(_kern, OID_AUTO, tty_nout, CTLFLAG_RD, +static unsigned long tty_nout = 0; +SYSCTL_ULONG(_kern, OID_AUTO, tty_nout, CTLFLAG_RD, &tty_nout, 0, "Total amount of bytes transmitted"); /* termios comparison macro's. */