aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppc
diff options
context:
space:
mode:
authorNicolas Souchu <nsouch@FreeBSD.org>1999-01-31 11:52:04 +0000
committerNicolas Souchu <nsouch@FreeBSD.org>1999-01-31 11:52:04 +0000
commitc9ab07382c3c904a4447106ec9459cfa281a6bb5 (patch)
treeb44b8d3c385e4cb3713ea6891cae27f6bf67fcf8 /sys/dev/ppc
parent6acb4914fb15124fe02c5fefa98229fd70f6570f (diff)
downloadsrc-c9ab07382c3c904a4447106ec9459cfa281a6bb5.tar.gz
src-c9ab07382c3c904a4447106ec9459cfa281a6bb5.zip
Fix compile warnings about missing braces around static initialization of unions.
Notes
Notes: svn path=/head/; revision=43460
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 65e3216e724b..7301f979e1bc 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;