From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 20 18:13:34 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 54CFA16A4CF for ; Sun, 20 Feb 2005 18:13:34 +0000 (GMT) Received: from house.arach.net.au (house2.arach.net.au [203.30.44.85]) by mx1.FreeBSD.org (Postfix) with SMTP id DC2F443D3F for ; Sun, 20 Feb 2005 18:13:32 +0000 (GMT) (envelope-from kat-free@kaqelectronics.dyndns.org) Received: (qmail 19408 invoked from network); 20 Feb 2005 18:13:30 -0000 Received: from unknown (HELO pythagorus.kaqelectronics.dyndns.org) (202.89.173.156) by house2.arach.net.au with SMTP for ; 20 Feb 2005 18:13:30 -0000 Received: from [192.168.0.2] (kathy.kaqelectronics.dyndns.org. [192.168.0.2]) id j1KIFQM3013443; Mon, 21 Feb 2005 02:15:27 +0800 (WST) (envelope-from kat-free@kaqelectronics.dyndns.org) Received: from 127.0.0.1 (AVG SMTP 7.0.300 [266.1.0]); Mon, 21 Feb 2005 02:13:25 +0800 Message-ID: <4218D345.30004@kaqelectronics.dyndns.org> Date: Mon, 21 Feb 2005 02:13:25 +0800 From: Kathy Quinlan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-au, en, en-us To: Zera William Holladay References: <4218B960.1050403@kaqelectronics.dyndns.org> In-Reply-To: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed cc: freebsd-hackers@freebsd.org 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 18:13:34 -0000 Zera William Holladay wrote: > > 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. No difference, I renamed to wtReceiver :( 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. Nope my main program can set the variables. > Hope this helps, Zera Holladay > > p.s. Watch the parameters in your function definitions too, you may get > them mixed-up. ??? Regards, Kat. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.1.0 - Release Date: 18/02/2005