ed: no further write error handling necessary

This commit is contained in:
aiju 2011-07-25 19:04:08 +02:00
parent 6222762eca
commit 8a46f407ae

View file

@ -372,7 +372,6 @@ commands(void)
if((io = create(file, OWRITE, 0666)) < 0)
error(file);
Binit(&iobuf, io, OWRITE);
Blethal(&iobuf, nil);
wrapp = 0;
if(dol > zero)
putfile();
@ -672,7 +671,6 @@ rescue(void)
io = create("ed.hup", OWRITE, 0666);
if(io > 0){
Binit(&iobuf, io, OWRITE);
Blethal(&iobuf, nil);
putfile();
}
}