Module Name:    src
Committed By:   dsl
Date:           Fri Nov 13 19:00:15 UTC 2009

Modified Files:
        src/sys/kern: tty_subr.c

Log Message:
Change args to clrbits() to be unsigned for efficiency.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/kern/tty_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/tty_subr.c
diff -u src/sys/kern/tty_subr.c:1.36 src/sys/kern/tty_subr.c:1.37
--- src/sys/kern/tty_subr.c:1.36	Mon Mar  9 16:19:22 2009
+++ src/sys/kern/tty_subr.c	Fri Nov 13 19:00:15 2009
@@ -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) {

Reply via email to