diff options
author | ssouhlal <ssouhlal@FreeBSD.org> | 2005-01-25 14:25:18 +0000 |
---|---|---|
committer | ssouhlal <ssouhlal@FreeBSD.org> | 2005-01-25 14:25:18 +0000 |
commit | b5c24e4025bfed7214a3dc53a7f2c0cd099f1ab3 (patch) | |
tree | f99adc3a1c4ccd870793b4cb2b1657c8450ec5bd /usr.sbin | |
parent | fe2b11df54f096bf739d37092ad185911531e18f (diff) | |
download | FreeBSD-src-b5c24e4025bfed7214a3dc53a7f2c0cd099f1ab3.zip FreeBSD-src-b5c24e4025bfed7214a3dc53a7f2c0cd099f1ab3.tar.gz |
Remove useless mode argument to open().
Reported by: Liam J. Foy <liamfoy@gmail.com>
Approved by: grehan (mentor)
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/lptcontrol/lptcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lptcontrol/lptcontrol.c b/usr.sbin/lptcontrol/lptcontrol.c index 387fc9e..62e5b85 100644 --- a/usr.sbin/lptcontrol/lptcontrol.c +++ b/usr.sbin/lptcontrol/lptcontrol.c @@ -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"); |