Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2005 11:38:35 -0600 (CST)
From:      Zera William Holladay <zholla1@uic.edu>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Error in my C programming
Message-ID:  <Pine.GSO.4.58.0502201128240.11994@icarus.cc.uic.edu>
In-Reply-To: <4218B960.1050403@kaqelectronics.dyndns.org>
References:  <4218B960.1050403@kaqelectronics.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help


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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.58.0502201128240.11994>