|
@@ -113,10 +113,10 @@ struct autofs_dev_ioctl {
|
|
|
|
|
|
static inline void init_autofs_dev_ioctl(struct autofs_dev_ioctl *in)
|
|
|
{
|
|
|
- memset(in, 0, sizeof(struct autofs_dev_ioctl));
|
|
|
+ memset(in, 0, AUTOFS_DEV_IOCTL_SIZE);
|
|
|
in->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR;
|
|
|
in->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR;
|
|
|
- in->size = sizeof(struct autofs_dev_ioctl);
|
|
|
+ in->size = AUTOFS_DEV_IOCTL_SIZE;
|
|
|
in->ioctlfd = -1;
|
|
|
}
|
|
|
|