[3089] in Athena Bugs

home help back first fref pref prev next nref lref last post

(RT) Kernel: caio/asy.c

daemon@ATHENA.MIT.EDU (John Carr)
Mon Sep 4 19:49:38 1989

To: bugs@ATHENA.MIT.EDU
Date: Mon, 04 Sep 89 19:49:25 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>

The following patch to caio/asy.c makes the file legal C.  As is,
there is a null statement among the variable declarations of a function
in this file.  This is not legal C, but is accepted by hc.  Attempting
to compile with gcc revealed the bug.

*** /minos/sys/caio/asy.c	Sun Jan 15 08:39:29 1989
--- asy.c	Sat Aug 26 17:01:32 1989
***************
*** 32,38 ****
  extern int cold;		/* if 1, we're still in startup */
  #define ASY_ADDR(addr) ((struct asydevice *)((addr) + pcif_io_b));
  #else
! #define ASY_ADDR(addr) ((struct asydevice *)((addr)));
  #endif ATR
  
  #include "../machineio/asyreg.h"
--- 32,38 ----
  extern int cold;		/* if 1, we're still in startup */
  #define ASY_ADDR(addr) ((struct asydevice *)((addr) + pcif_io_b));
  #else
! #define ASY_ADDR(addr) ((struct asydevice *)((addr)))
  #endif ATR
  
  #include "../machineio/asyreg.h"

home help back first fref pref prev next nref lref last post