X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f67e3671c985ad8095dc6fcc8be7ba6dd25cdf63..94187a80bd60baab4b9c4b949ad820d730578123:/sbr/discard.c diff --git a/sbr/discard.c b/sbr/discard.c index 83b0bfbc..a77240b7 100644 --- a/sbr/discard.c +++ b/sbr/discard.c @@ -1,6 +1,4 @@ - -/* - * discard.c -- discard output on a file pointer +/* 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 @@ -11,16 +9,9 @@ #include - void discard (FILE *io) { - if (io == NULL) - return; - - tcflush (fileno(io), TCOFLUSH); - - /* There used to be an fpurge() here on some platforms, stdio - hackery on others. But it didn't seem necessary. */ + if (io) + tcflush (fileno(io), TCOFLUSH); } -