]> diplodocus.org Git - nmh/blobdiff - sbr/discard.c
h/nmh.h: Remove unused NLENGTH(dirent) macro.
[nmh] / sbr / discard.c
index 83b0bfb..7f65aff 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);
 }
-