From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 20 16:23:37 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 F22A616A4CF for ; Sun, 20 Feb 2005 16:23:36 +0000 (GMT) Received: from house.arach.net.au (house1.arach.net.au [203.30.44.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 7FBC343D1D for ; Sun, 20 Feb 2005 16:23:32 +0000 (GMT) (envelope-from kat-free@kaqelectronics.dyndns.org) Received: (qmail 24588 invoked from network); 20 Feb 2005 16:23:01 -0000 Received: from unknown (HELO pythagorus.kaqelectronics.dyndns.org) (202.89.173.156) by house1.arach.net.au with SMTP for ; 20 Feb 2005 16:23:01 -0000 Received: from [192.168.0.2] (kathy.kaqelectronics.dyndns.org. [192.168.0.2]) id j1KGOvfL008996 for ; Mon, 21 Feb 2005 00:24:58 +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 00:22:56 +0800 Message-ID: <4218B960.1050403@kaqelectronics.dyndns.org> Date: Mon, 21 Feb 2005 00:22:56 +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: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed Subject: 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 16:23:37 -0000 Hi Guys, Here is a section of my code: *** Wtrend_Drivers.c *** void Reset_Network (unsigned char Network) { Length = 0x00; //Length = 0 as we are not sending any data with this command Receiver = 0x00; //Dummy Value for receiver, Node takes prefferance Node = 0xFF; //Node addy of 255 is broadcast to all nodes Command = Reset; //Command we want Make_Packet_Send(Head , Length, Network, Receiver, Node, Command, p_Data); } *** Wtrend_Drivers.h *** 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' I am at a loss as to why I am getting these errors, BTW this code compiles fine on my AVR (Atmel uC) but I need for a current app to use them under *nix. 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