X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcpydata.c;h=9cd8d38b3de8077379d8da67383b43fcec915372;hp=6fa21f7e2ce0de93993a155bd24e58532d6117c7;hb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;hpb=d254c5e2ad008f26d5fda43c3f24f0a711c7e851 diff --git a/sbr/cpydata.c b/sbr/cpydata.c index 6fa21f7..9cd8d38 100644 --- a/sbr/cpydata.c +++ b/sbr/cpydata.c @@ -6,6 +6,7 @@ ** complete copyright information. */ +#include #include #include @@ -17,9 +18,9 @@ cpydata(int in, int out, char *ifile, char *ofile) while ((i = read(in, buffer, sizeof(buffer))) > 0) { if (write(out, buffer, i) != i) - adios(ofile, "error writing"); + adios(EX_IOERR, ofile, "error writing"); } if (i == -1) - adios(ifile, "error reading"); + adios(EX_IOERR, ifile, "error reading"); }