Date: Mon, 21 Feb 2005 00:22:56 +0800 From: Kathy Quinlan <kat-free@kaqelectronics.dyndns.org> To: freebsd-hackers@freebsd.org Subject: Error in my C programming Message-ID: <4218B960.1050403@kaqelectronics.dyndns.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4218B960.1050403>