--- xinu/h/ports.h 2018/04/24 17:39:02 1.1 +++ xinu/h/ports.h 2018/04/24 17:39:14 1.1.1.2 @@ -1,6 +1,6 @@ /* ports.h - isbadport */ -#define NPORTS 50 /* maximum number of ports */ +#define NPORTS 30 /* maximum number of ports */ #define MAXMSGS 100 /* maximum messages on all ports*/ #define PTFREE '\01' /* port is Free */ #define PTLIMBO '\02' /* port is being deleted/reset */ @@ -8,7 +8,7 @@ #define PTEMPTY -1 /* initial semaphore entries */ struct ptnode { /* node on list of message ptrs */ - int ptmsg; /* a message */ + WORD ptmsg; /* a one-word message */ struct ptnode *ptnext; /* address of next node on list */ }; @@ -30,4 +30,4 @@ extern int ptnextp; /* next port to exa extern MARKER ptmark; #endif -#define isbadport(portid) ( (portid)<0 || (portid)>=NPORTS ) +#define isbadport(pid) ( (pid)<0 || (pid)>=NPORTS )