Remove useless mode argument to open().
Reported by: Liam J. Foy <liamfoy@gmail.com> Approved by: grehan (mentor)
This commit is contained in:
parent
4dd5ff1fce
commit
e65b439414
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140814
@ -96,7 +96,7 @@ int main (int argc, char **argv)
|
|||||||
if (irq_status == IRQ_UNSPECIFIED || argc != 0)
|
if (irq_status == IRQ_UNSPECIFIED || argc != 0)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
if ((fd = open(device, O_WRONLY, 0660)) < 0)
|
if ((fd = open(device, O_WRONLY)) < 0)
|
||||||
err(1, "open");
|
err(1, "open");
|
||||||
if (ioctl(fd, LPT_IRQ, &irq_status) < 0)
|
if (ioctl(fd, LPT_IRQ, &irq_status) < 0)
|
||||||
err(1, "ioctl");
|
err(1, "ioctl");
|
||||||
|
Loading…
Reference in New Issue
Block a user