mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Add missing ()
This commit is contained in:
parent
3a44a4c33e
commit
62da7a2d68
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142791
|
@ -1444,7 +1444,7 @@ fd_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread
|
|||
return (0);
|
||||
|
||||
case FD_STYPE: /* set drive type */
|
||||
if (!fflag & FWRITE)
|
||||
if (!(fflag & FWRITE))
|
||||
return (EPERM);
|
||||
/*
|
||||
* Allow setting drive type temporarily iff
|
||||
|
@ -1467,7 +1467,7 @@ fd_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread
|
|||
return (0);
|
||||
|
||||
case FD_SOPTS: /* set drive options */
|
||||
if (!fflag & FWRITE)
|
||||
if (!(fflag & FWRITE))
|
||||
return (EPERM);
|
||||
fd->options = *(int *)data;
|
||||
return (0);
|
||||
|
@ -1490,7 +1490,7 @@ fd_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread
|
|||
return (0);
|
||||
|
||||
case FD_FORM:
|
||||
if (!fflag & FWRITE)
|
||||
if (!(fflag & FWRITE))
|
||||
return (EPERM);
|
||||
if (((struct fd_formb *)data)->format_version !=
|
||||
FD_FORMAT_VERSION)
|
||||
|
|
Loading…
Reference in a new issue