maint: add braces as requested by HACKING coding standard
authorJérémy Compostella <jeremy.compostella@gmail.com>
Sun, 5 Feb 2012 16:53:55 +0000 (17:53 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 6 Feb 2012 01:34:20 +0000 (01:34 +0000)
* src/dd.c (dd_copy): Braces were missing for this do/while statement.

src/dd.c

index 2c545c2..9d24791 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -1807,12 +1807,14 @@ dd_copy (void)
           memset (obuf, 0, output_blocksize);
 
           do
-            if (iwrite (STDOUT_FILENO, obuf, output_blocksize)
-                != output_blocksize)
-              {
-                error (0, errno, _("writing to %s"), quote (output_file));
-                quit (EXIT_FAILURE);
-              }
+            {
+              if (iwrite (STDOUT_FILENO, obuf, output_blocksize)
+                  != output_blocksize)
+                {
+                  error (0, errno, _("writing to %s"), quote (output_file));
+                  quit (EXIT_FAILURE);
+                }
+            }
           while (--write_records != 0);
         }
     }