diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-19 02:38:36 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-19 02:38:36 +0100 |
| commit | e3a77e594f8491412d635d87fe5b4bc87f447aa5 (patch) | |
| tree | 17a18b27c79831025d08650d2cc43ff73d1b31e3 | |
| parent | 9df9a3625ced6ec4f8c2f159903e4d0309bedb12 (diff) | |
| download | plan9front-e3a77e594f8491412d635d87fe5b4bc87f447aa5.tar.xz | |
sdloop: hardcode Enotup[] string to avoid devaoe dependency
| -rw-r--r-- | sys/src/9/port/sdloop.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/9/port/sdloop.c b/sys/src/9/port/sdloop.c index 80118369d..49ea6886d 100644 --- a/sys/src/9/port/sdloop.c +++ b/sys/src/9/port/sdloop.c @@ -14,9 +14,6 @@ #include "../port/netif.h" extern char Echange[]; -extern char Enotup[]; - -#define uprint(...) snprint(up->genbuf, sizeof up->genbuf, __VA_ARGS__); enum { Maxpath = 256, @@ -302,7 +299,7 @@ loopbio(SDunit *u, int, int write, void *a, long count, uvlong lba) if(waserror()){ if(strcmp(up->errstr, Echange) == 0 || - strcmp(up->errstr, Enotup) == 0) + strstr(up->errstr, "device is down") != nil) u->sectors = 0; nexterror(); } |
