svn commit: r206206 - head/sys/fs/coda
Robert Watson
rwatson at FreeBSD.org
Mon Apr 5 19:40:14 UTC 2010
Author: rwatson
Date: Mon Apr 5 19:40:13 2010
New Revision: 206206
URL: http://svn.freebsd.org/changeset/base/206206
Log:
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
Modified:
head/sys/fs/coda/coda.h
Modified: head/sys/fs/coda/coda.h
==============================================================================
--- head/sys/fs/coda/coda.h Mon Apr 5 19:25:29 2010 (r206205)
+++ head/sys/fs/coda/coda.h Mon Apr 5 19:40:13 2010 (r206206)
@@ -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
More information about the svn-src-all
mailing list