From ff24e0c4ab5af7ec7ac82f26b1602864f779ab8f Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Fri, 30 Jul 2004 17:29:33 +0000 Subject: [PATCH] Small typo fixed, even smaller changes... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8523 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/net/new_stack/protocols/arp/arp.c | 4 ++-- src/tests/kits/net/new_stack/protocols/ipv4/ipv4.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/kits/net/new_stack/protocols/arp/arp.c b/src/tests/kits/net/new_stack/protocols/arp/arp.c index b00ead51ca..82e067c9d0 100644 --- a/src/tests/kits/net/new_stack/protocols/arp/arp.c +++ b/src/tests/kits/net/new_stack/protocols/arp/arp.c @@ -44,7 +44,7 @@ struct arp_header { enum { ARP_HARDWARE_TYPE_ETHERNET = 1, /* ethernet hardware format */ ARP_HARDWARE_TYPE_IEEE802 = 6, /* IEEE 802 hardware format */ - ARP_HARDWARE_TYPE_FRAMEREALY = 15 + ARP_HARDWARE_TYPE_FRAMERELAY = 15 }; enum { @@ -134,7 +134,7 @@ static status_t process_input(net_layer *me, net_buffer *buffer) if (!buffer) return B_ERROR; - if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, (void **) &protocol, NULL) != B_OK) + if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, &protocol, NULL) != B_OK) return B_ERROR; if (*protocol != htons(0x0806)) // ARP on Ethernet protocol value diff --git a/src/tests/kits/net/new_stack/protocols/ipv4/ipv4.c b/src/tests/kits/net/new_stack/protocols/ipv4/ipv4.c index d7e074b7d7..0e20bea5c8 100644 --- a/src/tests/kits/net/new_stack/protocols/ipv4/ipv4.c +++ b/src/tests/kits/net/new_stack/protocols/ipv4/ipv4.c @@ -118,7 +118,7 @@ static status_t process_input(net_layer *me, net_buffer *buffer) if (!buffer) return B_ERROR; - if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, (void **) &protocol, NULL) != B_OK) + if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, &protocol, NULL) != B_OK) return B_ERROR; if (*protocol != htons(0x0800)) // IPv4 on Ethernet protocol value