]> diplodocus.org Git - nmh/blobdiff - sbr/discard.c
docs/FAQ: Replace suggestion of NOMHNPROC with -nocheckmime.
[nmh] / sbr / discard.c
index 83b0bfbc0c5ee9d420f96fbbc9b636130ed7ccfb..7f65affc9fe619fa50f93e678740dbe519259dbb 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * discard.c -- discard output on a file pointer
  *
 
 #include <termios.h>
 
-
 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);
 }
-