Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/dev/usb Pull up following revision(s) (requested by r...
details: https://anonhg.NetBSD.org/src/rev/a3906f31165f
branches: netbsd-3
changeset: 577497:a3906f31165f
user: tron <tron%NetBSD.org@localhost>
date: Mon Nov 21 18:37:08 2005 +0000
description:
Pull up following revision(s) (requested by rpaulo in ticket #955):
sys/dev/usb/ulpt.c: revision 1.70 via patch
Fix a long standing typo noticed by Alex Pivovarov on PR/32061.
When people use variables like 'flag' and 'flags' in the same function
(one local and one passed as a parameter) this is prone to happen..
diffstat:
sys/dev/usb/ulpt.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 7caa2ff6ce06 -r a3906f31165f sys/dev/usb/ulpt.c
--- a/sys/dev/usb/ulpt.c Sun Nov 13 16:04:15 2005 +0000
+++ b/sys/dev/usb/ulpt.c Mon Nov 21 18:37:08 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ulpt.c,v 1.66 2005/02/27 00:27:51 perry Exp $ */
+/* $NetBSD: ulpt.c,v 1.66.2.1 2005/11/21 18:37:08 tron Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
/*
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.66 2005/02/27 00:27:51 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.66.2.1 2005/11/21 18:37:08 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -589,8 +589,8 @@
goto err4;
}
- /* If it's not opened for read the set up a reader. */
- if (!(flags & FREAD)) {
+ /* If it's not opened for read then set up a reader. */
+ if (!(flag & FREAD)) {
DPRINTF(("ulpt_open: start read callout\n"));
usb_callout_init(sc->sc_read_callout);
usb_callout(sc->sc_read_callout, hz/5, ulpt_tick, sc);
Home |
Main Index |
Thread Index |
Old Index