Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Do hex conversion right.



details:   https://anonhg.NetBSD.org/src/rev/5b6ccd80ed3a
branches:  trunk
changeset: 570683:5b6ccd80ed3a
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sun Oct 24 08:47:27 2004 +0000

description:
Do hex conversion right.

diffstat:

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

diffs (27 lines):

diff -r 570c21774e69 -r 5b6ccd80ed3a sys/dev/usb/if_cdce.c
--- a/sys/dev/usb/if_cdce.c     Sun Oct 24 07:12:40 2004 +0000
+++ b/sys/dev/usb/if_cdce.c     Sun Oct 24 08:47:27 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_cdce.c,v 1.2 2004/10/23 13:29:18 augustss Exp $ */
+/*     $NetBSD: if_cdce.c,v 1.3 2004/10/24 08:47:27 augustss Exp $ */
 
 /*
  * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul%windriver.com@localhost>
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.2 2004/10/23 13:29:18 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.3 2004/10/24 08:47:27 augustss Exp $");
 #include "bpfilter.h"
 
 #include <sys/param.h>
@@ -264,7 +264,7 @@
                        if ('0' <= c && c <= '9')
                                c -= '0';
                        else
-                               c -= 'A';
+                               c -= 'A' - 10;
                        c &= 0xf;
                        if (c%2 == 0)
                                c <<= 4;



Home | Main Index | Thread Index | Old Index