X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fdiscard.c;h=03eaa102111e470ae51bf4eceb96462d63d1feeb;hb=cde17f8d38bf9306df4706ac2acb528a2a686a29;hp=496bb7ab0f41ceb2d012a26b5ab1e0564b957a58;hpb=b067ff5c465a5d243ce5a19e562085a9a1a97215;p=mmh diff --git a/sbr/discard.c b/sbr/discard.c index 496bb7a..03eaa10 100644 --- a/sbr/discard.c +++ b/sbr/discard.c @@ -1,10 +1,10 @@ /* - * discard.c -- discard output on a file pointer - * - * 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. - */ +** discard.c -- discard output on a file pointer +** +** 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. +*/ #include @@ -27,7 +27,7 @@ void -discard (FILE *io) +discard(FILE *io) { #ifndef HAVE_TERMIOS_H # ifdef HAVE_TERMIO_H @@ -41,19 +41,19 @@ discard (FILE *io) 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;