Don't depend on the gcc feature of permitting conditional expressions

with only one void operand.
This commit is contained in:
Bruce Evans 1997-08-25 23:45:50 +00:00
parent 17bd614dd9
commit 25ec9b1615

View File

@ -20,7 +20,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
* $Id$
* $Id: 93cx6.h,v 1.7 1997/02/22 09:38:37 peter Exp $
*/
#include <sys/param.h>
@ -72,9 +72,9 @@ struct seeprom_descriptor {
(((sd)->sd_maddr != NULL) ? \
*((sd)->sd_maddr) : \
inb((sd)->sd_iobase))
#define SEEPROM_OUTB(sd, value) \
(((sd)->sd_maddr != NULL) ? \
*((sd)->sd_maddr) = (value) : \
#define SEEPROM_OUTB(sd, value) \
(((sd)->sd_maddr != NULL) ? \
(void)(*((sd)->sd_maddr) = (value)) : \
outb((sd)->sd_iobase, (value)))
#elif defined(__NetBSD__)