X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcpydgst.c;h=090cd7176834c4d9b67cca568e245983cf019296;hp=a9e5bc6e4aafebe9cbf0d49a450eacbd88064835;hb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;hpb=d254c5e2ad008f26d5fda43c3f24f0a711c7e851 diff --git a/sbr/cpydgst.c b/sbr/cpydgst.c index a9e5bc6..090cd71 100644 --- a/sbr/cpydgst.c +++ b/sbr/cpydgst.c @@ -7,6 +7,7 @@ ** complete copyright information. */ +#include #include #include @@ -27,7 +28,7 @@ #define output(c) if (bp >= dp) {flush(); *bp++ = c;} else *bp++ = c #define flush() if ((j = bp - outbuf) && write(out, outbuf, j) != j) \ - adios(ofile, "error writing"); \ + adios(EX_IOERR, ofile, "error writing"); \ else \ bp = outbuf @@ -62,6 +63,6 @@ cpydgst(int in, int out, char *ifile, char *ofile) } if (i == -1) - adios(ifile, "error reading"); + adios(EX_IOERR, ifile, "error reading"); flush(); }