summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2010-04-05 19:40:13 +0000
committerrwatson <rwatson@FreeBSD.org>2010-04-05 19:40:13 +0000
commit1a37d38c69954bf75f33e74c84fa092b9469f17a (patch)
tree3e401e53f8f351d7d6a096c8bcb61ad783a8d309
parentad91d8b44d9105205e8c8d8699c21b638ba7d0f2 (diff)
downloadFreeBSD-src-1a37d38c69954bf75f33e74c84fa092b9469f17a.zip
FreeBSD-src-1a37d38c69954bf75f33e74c84fa092b9469f17a.tar.gz
Correct definition of CIOC_KERNEL_VERSION Coda ioctl() for systems
where sizeof(int) != sizeof(sizeof(int)), or the ioctl will return EINVAL. MFC after: 3 days
-rw-r--r--sys/fs/coda/coda.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/coda/coda.h b/sys/fs/coda/coda.h
index 93547a4..376a574 100644
--- a/sys/fs/coda/coda.h
+++ b/sys/fs/coda/coda.h
@@ -313,7 +313,7 @@ struct coda_statfs {
#define VC_MAXMSGSIZE sizeof(union inputArgs)+sizeof(union outputArgs) +\
VC_MAXDATASIZE
-#define CIOC_KERNEL_VERSION _IOWR('c', 10, sizeof (int))
+#define CIOC_KERNEL_VERSION _IOWR('c', 10, int)
#if 0
/* don't care about kernel version number */
#define CODA_KERNEL_VERSION 0
OpenPOWER on IntegriCloud