diff options
author | nate <nate@FreeBSD.org> | 1996-06-17 22:14:19 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-06-17 22:14:19 +0000 |
commit | 1daa2fff752565c597a573c66c7b03d9807664e4 (patch) | |
tree | 1b030ab95f0cb7613aaf64a653f2a8ee460ccb49 /usr.sbin/pccard/pccardc/wrattr.c | |
parent | d1a982548c6c45f5b547c222ac35713b8c3d4e06 (diff) | |
download | FreeBSD-src-1daa2fff752565c597a573c66c7b03d9807664e4.zip FreeBSD-src-1daa2fff752565c597a573c66c7b03d9807664e4.tar.gz |
Use the defined path to the card devices instead of hard-coding it's
value in every file.
No functional changes.
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 20ec9f5..7577fdd 100644 --- a/usr.sbin/pccard/pccardc/wrattr.c +++ b/usr.sbin/pccard/pccardc/wrattr.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wrattr.c,v 1.4 1996/04/18 04:24:57 nate Exp $ + * $Id: wrattr.c,v 1.5 1996/04/18 05:23:47 nate Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -48,7 +48,7 @@ wrattr_main(argc, argv) fprintf(stderr, "usage: %s wrattr slot offs value\n", argv[0]); exit(1); } - sprintf(name, "/dev/card%d", atoi(argv[1])); + sprintf(name, CARD_DEVICE, atoi(argv[1])); fd = open(name, 2); if (fd < 0) { perror(name); |