Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Dec 1995 22:59:28 -0500 (EST)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/888: kernel doesn't compile with options DEVFS enabled
Message-ID:  <199512100359.WAA14541@hub.org>
Resent-Message-ID: <199512100610.WAA01751@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         888
>Category:       kern
>Synopsis:       kernel doesn't compile with options DEVFS enabled
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec  9 22:10:11 PST 1995
>Last-Modified:
>Originator:     Marc G. Fournier
>Organization:
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

	

>Description:

	If you enable DEVFS, in /us/src/sys/net/if_tun.c, there is
	a sprintf that requires a variable 'name' to be defined, but
	it isn't.

>How-To-Repeat:

	

>Fix:
	
*** net/if_tun.c.orig     Sat Dec  9 22:55:56 1995
--- net/if_tun.c  Sat Dec  9 22:58:10 1995
***************
*** 108,113 ****
--- 108,116 ----
        register int i;
        struct ifnet *ifp;
        dev_t dev;
+ #ifdef DEVFS
+       char name[8];
+ #endif

        if( tun_devsw_installed ) return;
        dev = makedev(CDEV_MAJOR, 0);


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512100359.WAA14541>