From 5afaa496818d4d3fedbbe4cbb5ea1f416f9fcfca Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Wed, 12 Jul 2006 19:56:19 +0000 Subject: zap some unused variables. the only use was in an #if notyet chunk since '97. ok miod@ 'no objections' pedro@ --- sys/arch/vax/mscp/mscp_disk.c | 4 ++-- sys/kern/spec_vnops.c | 11 +---------- sys/miscfs/specfs/spec_vnops.c | 11 +---------- sys/sys/conf.h | 6 +----- 4 files changed, 5 insertions(+), 27 deletions(-) diff --git a/sys/arch/vax/mscp/mscp_disk.c b/sys/arch/vax/mscp/mscp_disk.c index 08520919bc3..01e2baf26aa 100644 --- a/sys/arch/vax/mscp/mscp_disk.c +++ b/sys/arch/vax/mscp/mscp_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mscp_disk.c,v 1.16 2006/03/15 20:04:36 miod Exp $ */ +/* $OpenBSD: mscp_disk.c,v 1.17 2006/07/12 19:56:18 thib Exp $ */ /* $NetBSD: mscp_disk.c,v 1.30 2001/11/13 07:38:28 lukem Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -219,7 +219,7 @@ raopen(dev, flag, fmt, p) #if notyet while (ra->ra_state != DK_OPEN) if ((error = tsleep((caddr_t)ra, (PZERO + 1) | PCATCH, - devopn, 0))) { + "devopen", 0))) { splx(s); return (error); } diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index 6b5558c733f..23b86b9c1c8 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.34 2006/06/02 20:25:09 pedro Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.35 2006/07/12 19:56:18 thib Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -55,15 +55,6 @@ struct vnode *speclisth[SPECHSZ]; -/* symbolic sleep message strings for devices */ -char devopn[] = "devopn"; -char devio[] = "devio"; -char devwait[] = "devwait"; -char devin[] = "devin"; -char devout[] = "devout"; -char devioc[] = "devioc"; -char devcls[] = "devcls"; - int (**spec_vnodeop_p)(void *); struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_default_desc, vn_default_error }, diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index 6b5558c733f..23b86b9c1c8 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.34 2006/06/02 20:25:09 pedro Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.35 2006/07/12 19:56:18 thib Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -55,15 +55,6 @@ struct vnode *speclisth[SPECHSZ]; -/* symbolic sleep message strings for devices */ -char devopn[] = "devopn"; -char devio[] = "devio"; -char devwait[] = "devwait"; -char devin[] = "devin"; -char devout[] = "devout"; -char devioc[] = "devioc"; -char devcls[] = "devcls"; - int (**spec_vnodeop_p)(void *); struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_default_desc, vn_default_error }, diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 50a2dce8f07..cde3b35c5f6 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.79 2006/06/02 20:25:09 pedro Exp $ */ +/* $OpenBSD: conf.h,v 1.80 2006/07/12 19:56:18 thib Exp $ */ /* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */ /*- @@ -476,10 +476,6 @@ void randomattach(void); (dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \ (dev_type_mmap((*))) enodev } -/* symbolic sleep message strings */ -extern char devopn[], devio[], devwait[], devin[], devout[]; -extern char devioc[], devcls[]; - #endif /* -- cgit v1.2.3