Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia Fix memset arguments.
details: https://anonhg.NetBSD.org/src/rev/4aeed710ac47
branches: trunk
changeset: 325294:4aeed710ac47
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Dec 17 01:00:16 2013 +0000
description:
Fix memset arguments.
diffstat:
sys/dev/pcmcia/if_malo_pcmcia.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b3a877c9aba8 -r 4aeed710ac47 sys/dev/pcmcia/if_malo_pcmcia.c
--- a/sys/dev/pcmcia/if_malo_pcmcia.c Tue Dec 17 00:02:22 2013 +0000
+++ b/sys/dev/pcmcia/if_malo_pcmcia.c Tue Dec 17 01:00:16 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_malo_pcmcia.c,v 1.1 2012/08/25 08:20:03 kiyohara Exp $ */
+/* $NetBSD: if_malo_pcmcia.c,v 1.2 2013/12/17 01:00:16 joerg Exp $ */
/* $OpenBSD: if_malo.c,v 1.65 2009/03/29 21:53:53 sthen Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_malo_pcmcia.c,v 1.1 2012/08/25 08:20:03 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_malo_pcmcia.c,v 1.2 2013/12/17 01:00:16 joerg Exp $");
#ifdef _MODULE
#include <sys/module.h>
@@ -1793,7 +1793,7 @@
hdr->result = 0;
body = (struct malo_cmd_body_assoc *)(hdr + 1);
- memset(body, 0, sizeof(struct malo_cmd_body_assoc *));
+ memset(body, 0, sizeof(*body));
memcpy(body->peermac, sc->sc_net[sc->sc_net_cur].bssid, ETHER_ADDR_LEN);
body->capinfo = htole16(sc->sc_net[sc->sc_net_cur].capinfo);
body->listenintrv = htole16(10);
Home |
Main Index |
Thread Index |
Old Index