From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 20 17:38:36 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88C6816A4CE for ; Sun, 20 Feb 2005 17:38:36 +0000 (GMT) Received: from smtpout-1.priv.cc.uic.edu (smtpout-1.cc.uic.edu [128.248.155.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 0296743D2F for ; Sun, 20 Feb 2005 17:38:36 +0000 (GMT) (envelope-from zholla1@uic.edu) Received: (qmail 9901 invoked from network); 20 Feb 2005 11:38:35 -0600 Received: from icarus.cc.uic.edu (128.248.155.80) by smtpout-1.cc.uic.edu with SMTP; 20 Feb 2005 11:38:35 -0600 Date: Sun, 20 Feb 2005 11:38:35 -0600 (CST) From: Zera William Holladay X-X-Sender: zholla1@icarus.cc.uic.edu To: freebsd-hackers@freebsd.org In-Reply-To: <4218B960.1050403@kaqelectronics.dyndns.org> Message-ID: References: <4218B960.1050403@kaqelectronics.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Error in my C programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2005 17:38:36 -0000 On Mon, 21 Feb 2005, Kathy Quinlan wrote: > Hi Guys, > > Here is a section of my code: > > *** Wtrend_Drivers.c *** > unsigned char Length , Network , Receiver , Node , Command = 0x00; > //Some Variables > > These are some of the errors I get in pairs for each of the above variables: > > Wtrend_Drivers.c:15: conflicting types for `Receiver' > Wtrend_Drivers.h:9: previous declaration of `Receiver' Try giving "Receiver" a different identifier. Also, if you are trying to limit the scope of Length, Network, Receiver, Node and Command to Wtrend_Drivers.*, then give line 9 of Wtrend_Driver.h the "static" qualifier. Hope this helps, Zera Holladay p.s. Watch the parameters in your function definitions too, you may get them mixed-up.