Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci fix size in memset() parameter. Thanks max.
details: https://anonhg.NetBSD.org/src/rev/866b07258ece
branches: trunk
changeset: 332554:866b07258ece
user: christos <christos%NetBSD.org@localhost>
date: Sat Sep 27 15:44:27 2014 +0000
description:
fix size in memset() parameter. Thanks max.
diffstat:
sys/dev/pci/twa.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ce90098053cd -r 866b07258ece sys/dev/pci/twa.c
--- a/sys/dev/pci/twa.c Sat Sep 27 15:21:40 2014 +0000
+++ b/sys/dev/pci/twa.c Sat Sep 27 15:44:27 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: twa.c,v 1.51 2014/09/21 17:11:07 christos Exp $ */
+/* $NetBSD: twa.c,v 1.52 2014/09/27 15:44:27 christos Exp $ */
/* $wasabi: twa.c,v 1.27 2006/07/28 18:17:21 wrstuden Exp $ */
/*-
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.51 2014/09/21 17:11:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.52 2014/09/27 15:44:27 christos Exp $");
//#define TWA_DEBUG
@@ -2955,7 +2955,7 @@
uint32_t dsize;
uint8_t ports;
- memset(p, 0, sizeof(*p));
+ memset(p, 0, sizeof(p));
/* Get the port count. */
rv |= twa_get_param(sc, TWA_PARAM_CONTROLLER,
Home |
Main Index |
Thread Index |
Old Index