From 7741a20ae9f63e09d45cb80f4c8b5bc6b1a3ae3b Mon Sep 17 00:00:00 2001 From: rjs Date: Tue, 26 Sep 2006 16:35:26 +0000 Subject: [PATCH] Make it compile with gcc4. --- sys/arch/hpcarm/dev/ipaq_atmelgpio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/hpcarm/dev/ipaq_atmelgpio.c b/sys/arch/hpcarm/dev/ipaq_atmelgpio.c index f395160ba1cd..7c9887148e5d 100644 --- a/sys/arch/hpcarm/dev/ipaq_atmelgpio.c +++ b/sys/arch/hpcarm/dev/ipaq_atmelgpio.c @@ -1,4 +1,4 @@ -/* $NetBSD: ipaq_atmelgpio.c,v 1.11 2006/03/25 15:23:49 peter Exp $ */ +/* $NetBSD: ipaq_atmelgpio.c,v 1.12 2006/09/26 16:35:26 rjs Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. All rights reserved. @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ipaq_atmelgpio.c,v 1.11 2006/03/25 15:23:49 peter Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ipaq_atmelgpio.c,v 1.12 2006/09/26 16:35:26 rjs Exp $"); #include #include @@ -117,6 +117,9 @@ atmelgpio_attach(parent, self, aux) atmelgpio_init(sc); + rxbuf.idx = 0; + rxbuf.len = 0; + #if 1 /* this is sample */ rxtx_data(sc, STATUS_BATTERY, 0, NULL, &rxbuf);