8-bit fixes.
[jmk] --rw-rw-r-- M 1092710 sape sys 12915 Dec 29 17:54 sys/src/cmd/usb/lib/dump.c
/n/sourcesdump/2005/1229/plan9/sys/src/cmd/usb/lib/dump.c:515,523 -
/n/sourcesdump/2005/1230/plan9/sys/src/cmd/usb/lib/dump.c:515,522
if (d->nif <= ep) d->nif = ep+1;
break;
default:
- f = nil;
- if(b[1] < nelem(dprinter))
- f = dprinter[b[1]];
+ assert(nelem(dprinter) == 0x100);
+ f = dprinter[b[1]];
if(f != nil) {
(*f)(d, c, (dalt<<24) | (ifc<<16) | (csp&0xffff), b, b[0]);
if (debug & Dbginfo)
|