mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
7546d4b74e
commit
1c482201ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue