Error in my C programming

Zera William Holladay zholla1 at
Sun Feb 20 09:38:36 PST 2005

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"

Hope this helps, Zera Holladay

p.s. Watch the parameters in your function definitions too, you may get
them mixed-up.

More information about the freebsd-hackers mailing list