diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2008-09-02 23:05:13 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2008-09-02 23:05:13 +0000 |
commit | 85b70707b968c854727d320dd6acc5714ffc6841 (patch) | |
tree | 9a38b73b615c3ed3aba33b25f046cea232801828 /sbin/bioctl/bioctl.c | |
parent | dba026129b3472f3fce04a89617210b335853fbf (diff) |
devname -> devicename to prevent shadowing devname(3); ok marco@
Diffstat (limited to 'sbin/bioctl/bioctl.c')
-rw-r--r-- | sbin/bioctl/bioctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index edec7af7080..0ec3cdd9350 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioctl.c,v 1.76 2008/08/22 06:41:36 jmc Exp $ */ +/* $OpenBSD: bioctl.c,v 1.77 2008/09/02 23:05:12 dtucker Exp $ */ /* * Copyright (c) 2004, 2005 Marco Peereboom @@ -532,7 +532,7 @@ bio_getvolbyname(char *name) } void -bio_setstate(char *arg, int status, char *devname) +bio_setstate(char *arg, int status, char *devicename) { struct bioc_setstate bs; struct locator location; @@ -559,9 +559,9 @@ bio_setstate(char *arg, int status, char *devname) bs.bs_status = status; /* make sure user supplied a sd device */ - bs.bs_volid = bio_getvolbyname(devname); + bs.bs_volid = bio_getvolbyname(devicename); if (bs.bs_volid == -1) - errx(1, "invalid device %s", devname); + errx(1, "invalid device %s", devicename); rv = ioctl(devh, BIOCSETSTATE, &bs); if (rv == -1) |