From e3a77e594f8491412d635d87fe5b4bc87f447aa5 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 19 Dec 2014 02:38:36 +0100 Subject: [PATCH] sdloop: hardcode Enotup[] string to avoid devaoe dependency --- sys/src/9/port/sdloop.c | 5 +---- 1 file changed, 1 insertion(+), 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(); }