mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Don't depend on "implicit int" or bloat the data section in the
declaration of xxx_devsw_installed.
This commit is contained in:
parent
d68fa50ccb
commit
e31abede1f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33679
@ -513,7 +513,7 @@ snppoll(dev, events, p)
|
||||
#ifdef DEVFS
|
||||
static void *snp_devfs_token[NSNP];
|
||||
#endif
|
||||
static snp_devsw_installed = 0;
|
||||
static int snp_devsw_installed;
|
||||
|
||||
static void snp_drvinit __P((void *unused));
|
||||
static void
|
||||
|
@ -4,7 +4,7 @@
|
||||
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
|
||||
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
|
||||
*
|
||||
* $Id: spkr.c,v 1.31 1998/01/24 02:54:25 eivind Exp $
|
||||
* $Id: spkr.c,v 1.32 1998/02/09 06:08:41 eivind Exp $
|
||||
*/
|
||||
|
||||
#include "speaker.h"
|
||||
@ -584,7 +584,7 @@ spkrioctl(dev, cmd, cmdarg, flags, p)
|
||||
}
|
||||
|
||||
|
||||
static spkr_devsw_installed = 0;
|
||||
static int spkr_devsw_installed;
|
||||
|
||||
static void
|
||||
spkr_drvinit(void *unused)
|
||||
|
@ -4,7 +4,7 @@
|
||||
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
|
||||
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
|
||||
*
|
||||
* $Id: spkr.c,v 1.31 1998/01/24 02:54:25 eivind Exp $
|
||||
* $Id: spkr.c,v 1.32 1998/02/09 06:08:41 eivind Exp $
|
||||
*/
|
||||
|
||||
#include "speaker.h"
|
||||
@ -584,7 +584,7 @@ spkrioctl(dev, cmd, cmdarg, flags, p)
|
||||
}
|
||||
|
||||
|
||||
static spkr_devsw_installed = 0;
|
||||
static int spkr_devsw_installed;
|
||||
|
||||
static void
|
||||
spkr_drvinit(void *unused)
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)subr_log.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: subr_log.c,v 1.25 1997/10/28 15:58:21 bde Exp $
|
||||
* $Id: subr_log.c,v 1.26 1998/01/24 02:54:34 eivind Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -243,7 +243,7 @@ logioctl(dev, com, data, flag, p)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static log_devsw_installed = 0;
|
||||
static int log_devsw_installed;
|
||||
#ifdef DEVFS
|
||||
static void *log_devfs_token;
|
||||
#endif
|
||||
|
@ -513,7 +513,7 @@ snppoll(dev, events, p)
|
||||
#ifdef DEVFS
|
||||
static void *snp_devfs_token[NSNP];
|
||||
#endif
|
||||
static snp_devsw_installed = 0;
|
||||
static int snp_devsw_installed;
|
||||
|
||||
static void snp_drvinit __P((void *unused));
|
||||
static void
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tty_tty.c 8.2 (Berkeley) 9/23/93
|
||||
* $Id: tty_tty.c,v 1.21 1997/12/05 19:55:39 bde Exp $
|
||||
* $Id: tty_tty.c,v 1.22 1998/01/24 02:54:35 eivind Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -177,7 +177,7 @@ cttypoll(dev, events, p)
|
||||
return (VOP_POLL(ttyvp, events, p->p_ucred, p));
|
||||
}
|
||||
|
||||
static ctty_devsw_installed = 0;
|
||||
static int ctty_devsw_installed;
|
||||
#ifdef DEVFS
|
||||
static void *ctty_devfs_token;
|
||||
#endif
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
* @(#)bpf.c 8.2 (Berkeley) 3/28/94
|
||||
*
|
||||
* $Id: bpf.c,v 1.36 1997/11/18 16:29:53 bde Exp $
|
||||
* $Id: bpf.c,v 1.37 1998/01/24 02:54:37 eivind Exp $
|
||||
*/
|
||||
|
||||
#include "bpfilter.h"
|
||||
@ -1270,7 +1270,7 @@ bpfattach(ifp, dlt, hdrlen)
|
||||
static void *bpf_devfs_token[NBPFILTER];
|
||||
#endif
|
||||
|
||||
static bpf_devsw_installed = 0;
|
||||
static int bpf_devsw_installed;
|
||||
|
||||
static void bpf_drvinit __P((void *unused));
|
||||
static void
|
||||
|
@ -96,7 +96,7 @@ static struct cdevsw tun_cdevsw = {
|
||||
};
|
||||
|
||||
|
||||
static tun_devsw_installed = 0;
|
||||
static int tun_devsw_installed;
|
||||
#ifdef DEVFS
|
||||
static void *tun_devfs_token[NTUN];
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user