summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-02-26 10:28:32 +0000
committered <ed@FreeBSD.org>2009-02-26 10:28:32 +0000
commit516ad9be6dae58998c7eabae7a25de093e47fd95 (patch)
tree3fec856aba9167b423a5bc8562ef8c230b65f67e /sys
parent1c7d1f084a9a904ccb490cec891ee1cbef81997d (diff)
downloadFreeBSD-src-516ad9be6dae58998c7eabae7a25de093e47fd95.zip
FreeBSD-src-516ad9be6dae58998c7eabae7a25de093e47fd95.tar.gz
Use unsigned longs for the TTY's sysctl stats.
Spotted by: clang
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty_inq.c8
-rw-r--r--sys/kern/tty_outq.c8
-rw-r--r--sys/kern/tty_ttydisc.c8
3 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/tty_inq.c b/sys/kern/tty_inq.c
index f36ae05..60a13de 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)
diff --git a/sys/kern/tty_outq.c b/sys/kern/tty_outq.c
index 719c1a4..f429a92 100644
--- a/sys/kern/tty_outq.c
+++ b/sys/kern/tty_outq.c
@@ -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 {
diff --git a/sys/kern/tty_ttydisc.c b/sys/kern/tty_ttydisc.c
index 800ad13..2bb83dd 100644
--- a/sys/kern/tty_ttydisc.c
+++ b/sys/kern/tty_ttydisc.c
@@ -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. */
OpenPOWER on IntegriCloud