Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10965 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5af2ee7384
commit
45ded7fef6
@ -18,7 +18,6 @@ typedef const void *string_token;
|
||||
|
||||
// Networking attribute(s) definition
|
||||
typedef struct net_attribute net_attribute;
|
||||
typedef struct net_attribute * net_attribute_list;
|
||||
|
||||
#define NET_ATTRIBUTE_TYPE_MASK 0xFF // Up to 256 basic types
|
||||
#define NET_ATTRIBUTE_FLAGS_MASK 0xFFFFFF00
|
||||
@ -81,7 +80,7 @@ struct net_layer {
|
||||
uint32 use_count;
|
||||
struct net_layer **layers_above;
|
||||
struct net_layer **layers_below;
|
||||
net_attribute_list *attributes; // layer attributes
|
||||
net_attribute *attributes; // layer attributes
|
||||
};
|
||||
|
||||
// Network stack main module definition
|
||||
|
@ -72,6 +72,7 @@ static void dump_ipv4_header(net_buffer *buffer)
|
||||
dump_ipv4_addr(&ip.src);
|
||||
dprintf(" ----> ");
|
||||
dump_ipv4_addr(&ip.dst);
|
||||
dprintf("\n");
|
||||
dprintf("Protocol: %d (%s)\n", ip.protocol, pname);
|
||||
dprintf("Version: %d\n", ip.version_header_length >> 4);
|
||||
dprintf("Header Length (32 bit words): %d (%d bytes)\n",
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <drivers/module.h>
|
||||
#include <drivers/KernelExport.h>
|
||||
|
@ -63,7 +63,7 @@ status_t start_layers_manager(void)
|
||||
struct net_layer_module_info *nlmi;
|
||||
|
||||
sz = sizeof(module_name);
|
||||
while(read_next_module_name(module_list, module_name, &sz) == B_OK) {
|
||||
while (read_next_module_name(module_list, module_name, &sz) == B_OK) {
|
||||
sz = sizeof(module_name);
|
||||
if (!strlen(module_name))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user