🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Nicky Sandru (langt haar) Fri, 05 Oct 1990 14:48
Bug in patch #10
#966
Author: Nicky Sandru (langt haar)
Date: Fri, 05 Oct 1990 14:48
69 lines
1980 bytes
I have sent this to nn-bug (with the :bug command) but it was bouced
back, so I post it in the news.software.nn.

The patch #10 contains an error in term.c. When FREAD is defined and
HAVE_TERMIO is not, the 'arg' variable is allocated after executable
statements in 'flush_input()' and this causes an syntax error. Here
follows the patch.

Long Haired Nicky
News Adm at iddth
E-mail: ns@iddth.id.dk

*** term.c.old	Tue Oct  2 16:53:55 1990
--- term.c	Fri Oct  5 14:25:46 1990
***************
*** 816,825
  
  static int do_flush_input = 0;
  
  flush_input()
  {
      BATCH_CHECK;
  
  #ifdef HAVE_TERMIO
      ioctl(0, TCFLSH, 0);
      do_flush_input = 1;

--- 816,831 -----
  
  static int do_flush_input = 0;
  
  flush_input()
  {
+ #ifndef HAVE_TERMIO
+ #ifdef FREAD
+     int arg = FREAD;
+ #endif
+ #endif
+ 
      BATCH_CHECK;
  
  #ifdef HAVE_TERMIO
      ioctl(0, TCFLSH, 0);
      do_flush_input = 1;
***************
*** 823,833
  #ifdef HAVE_TERMIO
      ioctl(0, TCFLSH, 0);
      do_flush_input = 1;
  #else
  #ifdef FREAD
-     int arg = FREAD;
      ioctl(0, TIOCFLUSH, &arg);
  #else
      ioctl(0, TIOCFLUSH, 0);
  #endif
  #endif

--- 829,838 -----
  #ifdef HAVE_TERMIO
      ioctl(0, TCFLSH, 0);
      do_flush_input = 1;
  #else
  #ifdef FREAD
      ioctl(0, TIOCFLUSH, &arg);
  #else
      ioctl(0, TIOCFLUSH, 0);
  #endif
  #endif
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads