Bug 888 - kernel doesn't compile with options DEVFS enabled
Summary: kernel doesn't compile with options DEVFS enabled
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 2.2-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-12-10 06:10 UTC by scrappy
Modified: 1995-12-10 22:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.