diff options
author | phk <phk@FreeBSD.org> | 1996-02-13 14:15:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-02-13 14:15:13 +0000 |
commit | ec263309a1e004e28dfdf593606a53d8fe2594bd (patch) | |
tree | c14cadf4c8e1bcaa6d1a344b15426cbf88bbb1e4 /sys/isa | |
parent | cdfca40be272c3cd1407c2e5913adf84d0736806 (diff) | |
download | FreeBSD-src-ec263309a1e004e28dfdf593606a53d8fe2594bd.zip FreeBSD-src-ec263309a1e004e28dfdf593606a53d8fe2594bd.tar.gz |
use devfs_add_devswf and avoid local variable.
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/syscons.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index fabeddf..33dded3 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -25,7 +25,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: syscons.c,v 1.140 1996/02/05 14:08:39 ache Exp $ + * $Id: syscons.c,v 1.141 1996/02/08 06:30:31 pst Exp $ */ #include "sc.h" @@ -295,7 +295,6 @@ scattach(struct isa_device *dev) { scr_stat *scp; int vc; - char name[32]; scinit(); configuration = dev->id_flags; @@ -359,9 +358,8 @@ scattach(struct isa_device *dev) #ifdef DEVFS for ( vc = 0 ; vc < MAXCONS; vc++) { - sprintf(name,"ttyv%x", vc); - sc_devfs_token[vc] = devfs_add_devsw("/" ,name, &scdevsw, vc, - DV_CHR, 0, 0, 0600 ); + sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, + DV_CHR, 0, 0, 0600, "ttyv%n", vc ); } #endif { |