Fixed compilation warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4436 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bd3f48e8bf
commit
62315ec459
|
@ -130,7 +130,7 @@ static void attach_device(int devid, char *driver, char *devno)
|
||||||
status_t status;
|
status_t status;
|
||||||
int fsz = 0;
|
int fsz = 0;
|
||||||
|
|
||||||
ed = malloc(sizeof(struct ether_device));
|
ed = (struct ether_device*) malloc(sizeof(struct ether_device));
|
||||||
if (!ed)
|
if (!ed)
|
||||||
return;
|
return;
|
||||||
memset(ed, 0, sizeof(*ed));
|
memset(ed, 0, sizeof(*ed));
|
||||||
|
@ -423,7 +423,7 @@ lookup:
|
||||||
(m)->m_flags & M_PKTHDR ? (m)->m_data - (m)->m_pktdat : \
|
(m)->m_flags & M_PKTHDR ? (m)->m_data - (m)->m_pktdat : \
|
||||||
(m)->m_data - (m)->m_dat)
|
(m)->m_data - (m)->m_dat)
|
||||||
|
|
||||||
if (M_LEADINGSPACE(buf) >= sizeof(struct ether_header)) {
|
if (M_LEADINGSPACE(buf) >= (int32) sizeof(struct ether_header)) {
|
||||||
buf->m_data -= sizeof(struct ether_header);
|
buf->m_data -= sizeof(struct ether_header);
|
||||||
buf->m_len += sizeof(struct ether_header);
|
buf->m_len += sizeof(struct ether_header);
|
||||||
} else
|
} else
|
||||||
|
@ -777,7 +777,7 @@ out:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void arp_init(void)
|
static void arp_init()
|
||||||
{
|
{
|
||||||
llinfo_arp.la_next = llinfo_arp.la_prev = &llinfo_arp;
|
llinfo_arp.la_next = llinfo_arp.la_prev = &llinfo_arp;
|
||||||
|
|
||||||
|
@ -866,7 +866,7 @@ int ether_dev_stop(ifnet *dev)
|
||||||
static int ether_init(void *cpp)
|
static int ether_init(void *cpp)
|
||||||
{
|
{
|
||||||
if (cpp)
|
if (cpp)
|
||||||
core = cpp;
|
core = (struct core_module_info*) cpp;
|
||||||
|
|
||||||
etherq = start_ifq();
|
etherq = start_ifq();
|
||||||
ether_rxt = spawn_thread(ether_input, "ethernet_input", 50, NULL);
|
ether_rxt = spawn_thread(ether_input, "ethernet_input", 50, NULL);
|
||||||
|
|
Loading…
Reference in New Issue