From bugghy@phenix.rootshell.be  Wed Jun  9 11:13:47 2004
Return-Path: <bugghy@phenix.rootshell.be>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1185416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Jun 2004 11:13:47 +0000 (GMT)
Received: from phenix.rootshell.be (phenix.rootshell.be [217.22.55.50])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 88ADF43D41
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Jun 2004 11:13:46 +0000 (GMT)
	(envelope-from bugghy@phenix.rootshell.be)
Received: from phenix.rootshell.be (phenix [127.0.0.1])
	by phenix.rootshell.be (8.12.8/8.12.8) with ESMTP id i59BDjDR018583
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 9 Jun 2004 13:13:45 +0200
Received: from localhost (bugghy@localhost)
	by phenix.rootshell.be (8.12.8/8.12.8/Submit) with ESMTP id i59BDjWu005531
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 9 Jun 2004 13:13:45 +0200
Message-Id: <Pine.LNX.4.44.0406091313170.8373-100000@phenix.rootshell.be>
Date: Wed, 9 Jun 2004 13:13:45 +0200 (CEST)
From: bugghy <bugghy@phenix.rootshell.be>
To: FreeBSD-gnats-submit@freebsd.org
Subject: duplicate include in a module

>Number:         67748
>Category:       misc
>Synopsis:       duplicate include in a module
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 09 11:20:26 GMT 2004
>Closed-Date:    Wed Jun 09 15:42:05 GMT 2004
>Last-Modified:  Wed Jun 09 15:42:05 GMT 2004
>Originator:     bugghy
>Release:        FreeBSD 5.2.1-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD illusion.com 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #37: Sun May 30 15:14:21 GMT 2004 root@illusion.com:/usr/obj/usr/src/sys/BUGNERIC i386


	
>Description:
	# cat /usr/share/examples/kld/cdev/module/cdev.c |grep systm
	#include <sys/systm.h>
	#include <sys/systm.h>

	As you can see sys/systm.h has been included twice in the program.

	
>How-To-Repeat:
	cat /usr/share/examples/kld/cdev/module/cdev.c | grep systm
	
>Fix:
	remove one of the includes
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: le 
State-Changed-When: Wed Jun 9 15:41:34 GMT 2004 
State-Changed-Why:  
Thanks for spotting this, I've removed the duplicate. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=67748 
>Unformatted:
