Rearranged whitespace (and comments) in all the code!
[mmh] / sbr / cpydata.c
index d322ba9..c74b2ae 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * cpydata.c -- copy all data from one fd to another
  *
 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");
 }