summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppc
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>1999-01-31 11:52:04 +0000
committernsouch <nsouch@FreeBSD.org>1999-01-31 11:52:04 +0000
commit3d95317df913ff24462469e830baaaf6533542bb (patch)
tree88a5d673975047c7325c89fadd1a9ff14715249f /sys/dev/ppc
parent711b6c44998368611c2a7f8759cdd3e40bf4f3a5 (diff)
downloadFreeBSD-src-3d95317df913ff24462469e830baaaf6533542bb.zip
FreeBSD-src-3d95317df913ff24462469e830baaaf6533542bb.tar.gz
Fix compile warnings about missing braces around static initialization of unions.
Diffstat (limited to 'sys/dev/ppc')
-rw-r--r--sys/dev/ppc/ppc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index 65e3216..7301f97 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ppc.c,v 1.15 1999/01/10 16:41:13 nsouch Exp $
+ * $Id: ppc.c,v 1.16 1999/01/30 15:35:38 nsouch Exp $
*
*/
#include "ppc.h"
@@ -605,7 +605,7 @@ static int
ppc_smc37c66xgt_detect(struct ppc_data *ppc, int chipset_mode)
{
int s, i;
- char r;
+ u_char r;
int type = -1;
int csr = SMC66x_CSR; /* initial value is 0x3F0 */
@@ -657,7 +657,7 @@ config:
/* read the port's address: bits 0 and 1 of CR1 */
r = inb(cio) & SMC_CR1_ADDR;
- if (port_address[r] != ppc->ppc_base)
+ if (port_address[(int)r] != ppc->ppc_base)
return (-1);
ppc->ppc_type = type;
OpenPOWER on IntegriCloud