Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site wateng.UUCP Path: utzoo!watmath!wateng!tpchmara From: tpchmara@wateng.UUCP (Tom Chmara) Newsgroups: net.lang.c Subject: type incompatibilities: what am I doing wrong? Message-ID: <1570@wateng.UUCP> Date: Mon, 22-Oct-84 15:35:44 EDT Article-I.D.: wateng.1570 Posted: Mon Oct 22 15:35:44 1984 Date-Received: Tue, 23-Oct-84 00:52:04 EDT Organization: U of Waterloo, Ontario Lines: 45 [ Why aren't compiler errors eaten by the net monster? ] I've got a bit of a problem...I'm trying to revive a standalone driver for a DR11-B board. The code comes from our old PDP-11/45 running a UNIX version lying somewhere between V6 & V7 (i.e. OLD). The type checking was no heck on this thing's compiler, so when I tried compiling the source on our VAX (so that I could use vi and other nice things) I expected a few errors. Well, I got rid of most, but I can't get rid of the last one, which is "TCVRtest.c", line 47:operands of = have incompatible types Well, the line in question is vector[ 0 ].rint->pc = tfrintr; where the structure and function are declared as follows: struct dr11 { int drwc; int drba; int drst; int drdb; }; struct interrupt { void (*pc)(); int ps; }; typedef struct {struct interrupt *rint, *wint; } INTVECT; extern INTVECT vector[]; What am I doing wrong, guys? I've taken pointers to functions before, had arrays of the damned things, but obviously I've missed something. HELP!!!! Much thanks... ---tpc--- (Tom Chmara EE @ University of Waterloo) extern void tfrintr(); -- ...!{allegra | decvax | clyde | ihnp4 }!watmath!wateng!tpchmara