Tools for working with Cidco Mailstations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

tribble.c: provide nonfunctional OUTB/INB for unsupported platforms (#3)

also consistently use INB over inb

authored by

Jacob Krall and committed by
GitHub
3d5b8ebe 85933dd2

+13 -1
+13 -1
util/tribble.c
··· 13 13 #elif defined(__linux__) 14 14 #include <sys/io.h> 15 15 #define OUTB(port, byte) outb(byte, port) 16 + 17 + #else 18 + void 19 + OUTB(int port, int byte) 20 + { 21 + errx(1, "cannot write to parallel port"); 22 + } 23 + int 24 + inb(int port) 25 + { 26 + errx(1, "cannot read from parallel port"); 27 + } 16 28 #endif 17 29 18 30 #include "tribble.h" ··· 50 62 51 63 /* wait for (inverted) strobe */ 52 64 for (tries = 0; tries < 1024; tries++) 53 - if ((inb(tribble_port + STATUS) & stbin) == 0) 65 + if ((INB(tribble_port + STATUS) & stbin) == 0) 54 66 /* 55 67 * leave busy dropped, assume recvtribble() will deal 56 68 * with it