Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/vme Sizeof struct ievme, not sizeof size_t.
details: https://anonhg.NetBSD.org/src/rev/b345ef050d63
branches: trunk
changeset: 331646:b345ef050d63
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 18 04:26:38 2014 +0000
description:
Sizeof struct ievme, not sizeof size_t.
Noted by maxv@, compile-tested for sparc.
diffstat:
sys/dev/vme/if_ie_vme.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 84c1841a0a26 -r b345ef050d63 sys/dev/vme/if_ie_vme.c
--- a/sys/dev/vme/if_ie_vme.c Mon Aug 18 04:16:59 2014 +0000
+++ b/sys/dev/vme/if_ie_vme.c Mon Aug 18 04:26:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ie_vme.c,v 1.30 2011/06/03 16:28:41 tsutsui Exp $ */
+/* $NetBSD: if_ie_vme.c,v 1.31 2014/08/18 04:26:38 riastradh Exp $ */
/*
* Copyright (c) 1995 Charles D. Cranor
@@ -140,7 +140,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.30 2011/06/03 16:28:41 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.31 2014/08/18 04:26:38 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -424,7 +424,7 @@
return (0);
}
if (va->r[0].size != VMECF_LEN_DEFAULT &&
- va->r[0].size != sizeof(sizeof(struct ievme))) {
+ va->r[0].size != sizeof(struct ievme)) {
printf("ie_vme_match: bad csr size\n");
return (0);
}
Home |
Main Index |
Thread Index |
Old Index