From 1c482201efe945e6b61fbed6873dd8bf4f81ace3 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 5 Apr 2010 19:40:13 +0000 Subject: [PATCH] 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 --- sys/fs/coda/coda.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/coda/coda.h b/sys/fs/coda/coda.h index 93547a4d7e8..376a574a933 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