Don't set d_flags twice. The second setting clobbered D_NOGIANT.

This commit is contained in:
Bruce Evans 2004-02-24 04:35:44 +00:00
parent aa5191aa75
commit 63a97efcbb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126188
3 changed files with 3 additions and 6 deletions

View File

@ -40,7 +40,7 @@ static d_poll_t snppoll;
static struct cdevsw snp_cdevsw = {
.d_version = D_VERSION,
.d_flags = D_NEEDGIANT,
.d_flags = D_PSEUDO | D_NEEDGIANT,
.d_open = snpopen,
.d_close = snpclose,
.d_read = snpread,
@ -48,7 +48,6 @@ static struct cdevsw snp_cdevsw = {
.d_ioctl = snpioctl,
.d_poll = snppoll,
.d_name = "snp",
.d_flags = D_PSEUDO,
};
static struct linesw snpdisc = {

View File

@ -98,7 +98,7 @@ static d_poll_t tappoll;
static struct cdevsw tap_cdevsw = {
.d_version = D_VERSION,
.d_flags = D_NEEDGIANT,
.d_flags = D_PSEUDO | D_NEEDGIANT,
.d_open = tapopen,
.d_close = tapclose,
.d_read = tapread,
@ -106,7 +106,6 @@ static struct cdevsw tap_cdevsw = {
.d_ioctl = tapioctl,
.d_poll = tappoll,
.d_name = CDEV_NAME,
.d_flags = D_PSEUDO,
};
static int tapdebug = 0; /* debug flag */

View File

@ -105,7 +105,7 @@ static d_poll_t tunpoll;
static struct cdevsw tun_cdevsw = {
.d_version = D_VERSION,
.d_flags = D_NEEDGIANT,
.d_flags = D_PSEUDO | D_NEEDGIANT,
.d_open = tunopen,
.d_close = tunclose,
.d_read = tunread,
@ -113,7 +113,6 @@ static struct cdevsw tun_cdevsw = {
.d_ioctl = tunioctl,
.d_poll = tunpoll,
.d_name = TUNNAME,
.d_flags = D_PSEUDO,
};
static void