From 5a4c8619d8ca50fbcf2773020c5d75b8def6675b Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 1 May 1998 18:10:50 +0000 Subject: Support compiling with `gcc -ansi'. Just use __inline instead of inline. [__]inline is only used to bloat the code here. It gives a separate copy of all the strings for each time this header is included... Fixed misuse of __P(()). --- sys/dev/isp/ispvar.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index 8625b0e6cd6f6..4e2ed9e846417 100644 --- a/sys/dev/isp/ispvar.h +++ b/sys/dev/isp/ispvar.h @@ -1,4 +1,4 @@ -/* $Id: ispvar.h,v 1.6 1998/04/14 17:51:32 mjacob Exp $ */ +/* $Id: ispvar.h,v 1.1 1998/04/22 17:54:58 mjacob Exp $ */ /* * Soft Definitions for for Qlogic ISP SCSI adapters. * @@ -161,7 +161,10 @@ typedef struct { #define FW_REINIT 0x0006 #define FW_NON_PART 0x0007 -static inline char *fw_statename __P((u_int8_t x)) +static __inline char *fw_statename __P((u_int8_t x)); +static __inline char * +fw_statename(x) + u_int8_t x; { switch(x) { case FW_CONFIG_WAIT: return "Config Wait"; -- cgit v1.3