X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/afee8ed17a56617618fb7f963b111d7cf0fb56e7..dd6bfc058da415e30995eeea116c65861671e2aa:/sbr/discard.c?ds=sidebyside diff --git a/sbr/discard.c b/sbr/discard.c index 83b0bfbc..6591bc04 100644 --- a/sbr/discard.c +++ b/sbr/discard.c @@ -1,26 +1,17 @@ - -/* - * 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 * complete copyright information. */ -#include +#include "h/mh.h" #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); } -