diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-20 19:41:37 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-20 19:41:37 +0200 |
commit | c4ec69045e40277433a7fdc48c0ff4b19a11fa59 (patch) | |
tree | 40845282b74c32b78cdf23b918713e45bed720b8 /sys/src/9/port/devusb.c | |
parent | 86a9f92f47f9cb5d9eb3806e458d856b0ee81b08 (diff) |
devusb: use Enotconf[] string constant
Diffstat (limited to 'sys/src/9/port/devusb.c')
-rw-r--r-- | sys/src/9/port/devusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/port/devusb.c b/sys/src/9/port/devusb.c index 846ed32ab..129cb325c 100644 --- a/sys/src/9/port/devusb.c +++ b/sys/src/9/port/devusb.c @@ -1141,7 +1141,7 @@ usbread(Chan *c, void *a, long n, vlong offset) error(Ebadusefd); switch(ep->ttype){ case Tnone: - error("endpoint not configured"); + error(Enotconf); case Tctl: nr = rhubread(ep, a, n); if(nr >= 0){ @@ -1535,7 +1535,7 @@ usbwrite(Chan *c, void *a, long n, vlong off) switch(ep->ttype){ case Tnone: - error("endpoint not configured"); + error(Enotconf); case Tctl: nr = rhubwrite(ep, a, n); if(nr >= 0){ |