[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Include Problems
From: |
Spies, Dominik |
Subject: |
[lwip-users] Include Problems |
Date: |
Tue, 22 May 2007 09:19:51 +0200 |
Hi!
I'm working
on a APIPA module and got some problems:
I have a apipa.c and a
apipa.h in the core directory. apipa.h is included by etharp.c (cause of "hook"
at incoming arp packets), netif.h (apipa struct in netif like dhcp) and in
apipa.c.
I declared the function
void apipa_arp_reply(struct netif *netif,
struct etharp_hdr *hdr);
in apipa.h and implemented it in apipa.c and calling it
in etharp.c (atharp_arp_input()):
#if
(LWIP_APIPA)
apipa_arp_reply(netif, hdr);
#endif
I must include arch/etharp.h in apipa.h that i get no error, when i do
it i get following warnings:
Severity and
Description Path Resource Location Creation
Time Id
warning: 'struct etharp_hdr' declared inside parameter
list FreeRTOS_02/lwip/include/lwip apipa.h line
98 1179817999628 8037
Severity and
Description Path Resource Location Creation
Time Id
warning: its scope is only this definition or declaration, which
is probably not what you
want FreeRTOS_02/lwip/include/lwip apipa.h line
98 1179817999628 8038
Severity and
Description Path Resource Location Creation
Time Id
warning: passing argument 2 of 'apipa_arp_reply' from
incompatible pointer type FreeRTOS_02/lwip/arch etharp.c line
633 1179817999639 8040
What
could cause that problem?
Regards,
Dominik