summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-04-27 18:47:39 +0000
committerjdp <jdp@FreeBSD.org>1999-04-27 18:47:39 +0000
commit400af7ccabc7621a79bf321515cbddf79f3df468 (patch)
tree722b99ab65217e36b067d04dfb16f57b59b1caf9
parent20a0a375c2944c28208ebecbf5774f17dc288318 (diff)
downloadFreeBSD-src-400af7ccabc7621a79bf321515cbddf79f3df468.zip
FreeBSD-src-400af7ccabc7621a79bf321515cbddf79f3df468.tar.gz
Eliminate compiler warning about missing type in declaration.
Remove useless initialization of static variable to 0. Move static variable declaration into the only function that uses it.
-rw-r--r--sys/pccard/pccard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index 129ca78..0d1e7ab 100644
--- a/sys/pccard/pccard.c
+++ b/sys/pccard/pccard.c
@@ -28,7 +28,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: pccard.c,v 1.74 1999/04/27 11:18:08 phk Exp $
+ * $Id: pccard.c,v 1.75 1999/04/27 18:34:13 jdp Exp $
*/
#include "opt_devfs.h"
@@ -1095,11 +1095,10 @@ find_driver(char *name)
return(0);
}
-static crd_devsw_installed = 0;
-
static void
crd_drvinit(void *unused)
{
+ static int crd_devsw_installed;
dev_t dev;
if (!crd_devsw_installed) {
OpenPOWER on IntegriCloud