changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: devusb: use Enotconf[] string constant

changeset 6829: 9632658d8671
parent 6828: a803b93706b8
child 6830: 57cbf6be300b
author: cinap_lenrek@felloff.net
date: Sat, 20 Oct 2018 19:41:37 +0200
files: sys/src/9/port/devusb.c
description: devusb: use Enotconf[] string constant
     1.1--- a/sys/src/9/port/devusb.c
     1.2+++ b/sys/src/9/port/devusb.c
     1.3@@ -1141,7 +1141,7 @@ usbread(Chan *c, void *a, long n, vlong 
     1.4 		error(Ebadusefd);
     1.5 	switch(ep->ttype){
     1.6 	case Tnone:
     1.7-		error("endpoint not configured");
     1.8+		error(Enotconf);
     1.9 	case Tctl:
    1.10 		nr = rhubread(ep, a, n);
    1.11 		if(nr >= 0){
    1.12@@ -1535,7 +1535,7 @@ usbwrite(Chan *c, void *a, long n, vlong
    1.13 
    1.14 	switch(ep->ttype){
    1.15 	case Tnone:
    1.16-		error("endpoint not configured");
    1.17+		error(Enotconf);
    1.18 	case Tctl:
    1.19 		nr = rhubwrite(ep, a, n);
    1.20 		if(nr >= 0){