aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty_inq.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-02-26 10:28:32 +0000
committerEd Schouten <ed@FreeBSD.org>2009-02-26 10:28:32 +0000
commit1d952ed28ccefe042f45e3873c900f46baa9a60a (patch)
tree3fec856aba9167b423a5bc8562ef8c230b65f67e /sys/kern/tty_inq.c
parent1e737f33a018feb91f471d8d617ffae2aba26a37 (diff)
downloadsrc-1d952ed28ccefe042f45e3873c900f46baa9a60a.tar.gz
src-1d952ed28ccefe042f45e3873c900f46baa9a60a.zip
Use unsigned longs for the TTY's sysctl stats.
Spotted by: clang
Notes
Notes: svn path=/head/; revision=189061
Diffstat (limited to 'sys/kern/tty_inq.c')
-rw-r--r--sys/kern/tty_inq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty_inq.c b/sys/kern/tty_inq.c
index f36ae0582bfe..60a13de4e0e1 100644
--- a/sys/kern/tty_inq.c
+++ b/sys/kern/tty_inq.c
@@ -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)