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
This commit is contained in:
Robert Watson 2010-04-05 19:40:13 +00:00
parent 7546d4b74e
commit 1c482201ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206206

View file

@ -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