Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fix porting miss.



details:   https://anonhg.NetBSD.org/src/rev/6fdd79636ea7
branches:  trunk
changeset: 752360:6fdd79636ea7
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Wed Feb 24 12:29:47 2010 +0000

description:
Fix porting miss.
  However this change in between #ifdef notyet and #endif.
  Thanks for fukaumi.

diffstat:

 sys/dev/usb/udl.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 31cddc0e4208 -r 6fdd79636ea7 sys/dev/usb/udl.c
--- a/sys/dev/usb/udl.c Wed Feb 24 12:18:37 2010 +0000
+++ b/sys/dev/usb/udl.c Wed Feb 24 12:29:47 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udl.c,v 1.1 2009/11/30 16:18:34 tsutsui Exp $  */
+/*     $NetBSD: udl.c,v 1.2 2010/02/24 12:29:47 kiyohara Exp $ */
 
 /*-
  * Copyright (c) 2009 FUKAUMI Naoki.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.1 2009/11/30 16:18:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.2 2010/02/24 12:29:47 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -1191,8 +1191,8 @@
 
        x = d->x1;
        y = d->y1;
-       width = d->x2 - d->x1 + 1;
-       height = d->y2 - d->y1 + 1;
+       width = d->x2 - d->x1;
+       height = d->y2 - d->y1;
        sbase = y * sc->sc_width;
        ebase = (y + height) * sc->sc_width;
 
@@ -1225,8 +1225,8 @@
 
        x = d->x1;
        y = d->y1;
-       width = d->x2 - d->x1 + 1;
-       height = d->y2 - d->y1 + 1;
+       width = d->x2 - d->x1;
+       height = d->y2 - d->y1;
        soff = y * sc->sc_width + x;
        eoff = (y + height) * sc->sc_width + x;
 



Home | Main Index | Thread Index | Old Index