Rearranged whitespace (and comments) in all the code!
[mmh] / sbr / discard.c
index dbc865c..21fc88f 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * discard.c -- discard output on a file pointer
  *
@@ -32,35 +31,35 @@ discard (FILE *io)
 {
 #ifndef HAVE_TERMIOS_H
 # ifdef HAVE_TERMIO_H
-    struct termio tio;
+       struct termio tio;
 # else
-    struct sgttyb tio;
+       struct sgttyb tio;
 # endif
 #endif
 
-    if (io == NULL)
-       return;
+       if (io == NULL)
+               return;
 
 #ifdef HAVE_TERMIOS_H
-    tcflush (fileno(io), TCOFLUSH);
+       tcflush (fileno(io), TCOFLUSH);
 #else
 # ifdef HAVE_TERMIO_H
-    if (ioctl (fileno(io), TCGETA, &tio) != -1)
-       ioctl (fileno(io), TCSETA, &tio);
+       if (ioctl (fileno(io), TCGETA, &tio) != -1)
+               ioctl (fileno(io), TCSETA, &tio);
 # else
-    if (ioctl (fileno(io), TIOCGETP, (char *) &tio) != -1)
-       ioctl (fileno(io), TIOCSETP, (char *) &tio);
+       if (ioctl (fileno(io), TIOCGETP, (char *) &tio) != -1)
+               ioctl (fileno(io), TIOCSETP, (char *) &tio);
 # endif
 #endif
 
 #if defined(_FSTDIO) || defined(__DragonFly__)
-    fpurge (io);
+       fpurge (io);
 #else
 # ifdef LINUX_STDIO
-    io->_IO_write_ptr = io->_IO_write_base;
+       io->_IO_write_ptr = io->_IO_write_base;
 # else
-    if ((io->_ptr = io->_base))
-       io->_cnt = 0;
+       if ((io->_ptr = io->_base))
+               io->_cnt = 0;
 # endif
 #endif
 }