X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fcpydata.c;h=c74b2ae85886c5e8a9c7d4e85c12e7a899c1d627;hb=18017df38ebb626f6eed6f339641fd1298c326e7;hp=c3ca3ed6e45b3c07fc09aef0adda512541df7130;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/sbr/cpydata.c b/sbr/cpydata.c index c3ca3ed..c74b2ae 100644 --- a/sbr/cpydata.c +++ b/sbr/cpydata.c @@ -1,9 +1,6 @@ - /* * cpydata.c -- copy all data from one fd to another * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -14,14 +11,14 @@ void cpydata (int in, int out, char *ifile, char *ofile) { - int i; - char buffer[BUFSIZ]; + int i; + char buffer[BUFSIZ]; - while ((i = read(in, buffer, sizeof(buffer))) > 0) { - if (write(out, buffer, i) != i) - adios(ofile, "error writing"); - } + while ((i = read(in, buffer, sizeof(buffer))) > 0) { + if (write(out, buffer, i) != i) + adios(ofile, "error writing"); + } - if (i == -1) - adios(ifile, "error reading"); + if (i == -1) + adios(ifile, "error reading"); }