Bug 888

Summary: kernel doesn't compile with options DEVFS enabled
Product: Base System Reporter: scrappy
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 2.2-CURRENT   
Hardware: Any   
OS: Any   

Description scrappy 1995-12-10 06:10:11 UTC
	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.

Fix: 

if( tun_devsw_installed ) return;
        dev = makedev(CDEV_MAJOR, 0);--RCj03K1CAqN8fjCVhNxM6EZ8faCxF9ivQ2lbAmV37pOhFos9
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** 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
Comment 1 Bruce Evans freebsd_committer freebsd_triage 1995-12-10 22:30:58 UTC
State Changed
From-To: open->closed

Already fixed.