Remove useless mode argument to open().
Reported by: Liam J. Foy <liamfoy@gmail.com> Approved by: grehan (mentor)
This commit is contained in:
parent
fe2b11df54
commit
b5c24e4025
@ -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