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
@ -96,7 +96,7 @@ int main (int argc, char **argv)
|
||||
if (irq_status == IRQ_UNSPECIFIED || argc != 0)
|
||||
usage();
|
||||
|
||||
if ((fd = open(device, O_WRONLY, 0660)) < 0)
|
||||
if ((fd = open(device, O_WRONLY)) < 0)
|
||||
err(1, "open");
|
||||
if (ioctl(fd, LPT_IRQ, &irq_status) < 0)
|
||||
err(1, "ioctl");
|
||||
|
Loading…
Reference in New Issue
Block a user