Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Change args to clrbits() to be unsigned for efficie...
details: https://anonhg.NetBSD.org/src/rev/e94731930712
branches: trunk
changeset: 749017:e94731930712
user: dsl <dsl%NetBSD.org@localhost>
date: Fri Nov 13 19:00:15 2009 +0000
description:
Change args to clrbits() to be unsigned for efficiency.
diffstat:
sys/kern/tty_subr.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 05ccf0208f9e -r e94731930712 sys/kern/tty_subr.c
--- a/sys/kern/tty_subr.c Fri Nov 13 13:49:09 2009 +0000
+++ b/sys/kern/tty_subr.c Fri Nov 13 19:00:15 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty_subr.c,v 1.36 2009/03/09 16:19:22 uebayasi Exp $ */
+/* $NetBSD: tty_subr.c,v 1.37 2009/11/13 19:00:15 dsl Exp $ */
/*
* Copyright (c) 1993, 1994 Theo de Raadt
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_subr.c,v 1.36 2009/03/09 16:19:22 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_subr.c,v 1.37 2009/11/13 19:00:15 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,7 +60,7 @@
#endif
#ifdef QBITS
-static void clrbits(u_char *, int, int);
+static void clrbits(u_char *, unsigned int, unsigned int);
#endif
/*
@@ -301,10 +301,10 @@
* clrbit(cp, off + len);
*/
static void
-clrbits(u_char *cp, int off, int len)
+clrbits(u_char *cp, unsigned int off, unsigned int len)
{
- int sby, sbi, eby, ebi;
- int i;
+ unsigned int sby, sbi, eby, ebi;
+ unsigned int i;
u_char mask;
if (len==1) {
Home |
Main Index |
Thread Index |
Old Index