Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/puffs Do the protocol consistency check hack only whe...
details: https://anonhg.NetBSD.org/src/rev/6a3b30f00d4a
branches: trunk
changeset: 784059:6a3b30f00d4a
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jan 16 21:10:14 2013 +0000
description:
Do the protocol consistency check hack only when compiling ELF.
diffstat:
sys/fs/puffs/puffs_vfsops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 867c397d5051 -r 6a3b30f00d4a sys/fs/puffs/puffs_vfsops.c
--- a/sys/fs/puffs/puffs_vfsops.c Wed Jan 16 20:34:10 2013 +0000
+++ b/sys/fs/puffs/puffs_vfsops.c Wed Jan 16 21:10:14 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: puffs_vfsops.c,v 1.106 2012/08/09 07:46:18 manu Exp $ */
+/* $NetBSD: puffs_vfsops.c,v 1.107 2013/01/16 21:10:14 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.106 2012/08/09 07:46:18 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.107 2013/01/16 21:10:14 pooka Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -85,7 +85,7 @@
* Try to ensure data structures used by the puffs protocol
* do not unexpectedly change.
*/
-#ifdef __i386__
+#if defined(__i386__) && defined(__ELF__)
CTASSERT(sizeof(struct puffs_kargs) == 3928);
CTASSERT(sizeof(struct vattr) == 136);
CTASSERT(sizeof(struct puffs_req) == 44);
Home |
Main Index |
Thread Index |
Old Index