diff options
author | kuriyama <kuriyama@FreeBSD.org> | 1999-02-05 16:00:17 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 1999-02-05 16:00:17 +0000 |
commit | bb6581fcda0c6f8f8baa4e162356f9ce751eec19 (patch) | |
tree | a9e87b8b56cdf0f7dc7551c962ea57826186b878 /usr.sbin/pccard/pccardc/wrattr.c | |
parent | 8e2b9b49780839017afbba7d971ce7d749f1ad1e (diff) | |
download | FreeBSD-src-bb6581fcda0c6f8f8baa4e162356f9ce751eec19.zip FreeBSD-src-bb6581fcda0c6f8f8baa4e162356f9ce751eec19.tar.gz |
Use O_RDONLY and O_RDWR for open() instead of number.
Encouraged by: Nate
Diffstat (limited to 'usr.sbin/pccard/pccardc/wrattr.c')
-rw-r--r-- | usr.sbin/pccard/pccardc/wrattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pccard/pccardc/wrattr.c b/usr.sbin/pccard/pccardc/wrattr.c index b1cf829..e7857b9 100644 --- a/usr.sbin/pccard/pccardc/wrattr.c +++ b/usr.sbin/pccard/pccardc/wrattr.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$Id: wrattr.c,v 1.9 1997/10/06 11:35:56 charnier Exp $"; + "$Id: wrattr.c,v 1.10 1997/11/18 21:08:08 nate Exp $"; #endif /* not lint */ #include <err.h> @@ -59,7 +59,7 @@ wrattr_main(argc, argv) if (argc != 4) usage(); sprintf(name, CARD_DEVICE, atoi(argv[1])); - fd = open(name, 2); + fd = open(name, O_RDWR); if (fd < 0) err(1, "%s", name); reg = MDF_ATTR; |