Fixed warnings.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10965 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2005-01-22 21:48:13 +00:00
parent 5af2ee7384
commit 45ded7fef6
4 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,6 @@ typedef const void *string_token;
// Networking attribute(s) definition // Networking attribute(s) definition
typedef struct net_attribute net_attribute; 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_TYPE_MASK 0xFF // Up to 256 basic types
#define NET_ATTRIBUTE_FLAGS_MASK 0xFFFFFF00 #define NET_ATTRIBUTE_FLAGS_MASK 0xFFFFFF00
@ -81,7 +80,7 @@ struct net_layer {
uint32 use_count; uint32 use_count;
struct net_layer **layers_above; struct net_layer **layers_above;
struct net_layer **layers_below; struct net_layer **layers_below;
net_attribute_list *attributes; // layer attributes net_attribute *attributes; // layer attributes
}; };
// Network stack main module definition // Network stack main module definition

View File

@ -72,6 +72,7 @@ static void dump_ipv4_header(net_buffer *buffer)
dump_ipv4_addr(&ip.src); dump_ipv4_addr(&ip.src);
dprintf(" ----> "); dprintf(" ----> ");
dump_ipv4_addr(&ip.dst); dump_ipv4_addr(&ip.dst);
dprintf("\n");
dprintf("Protocol: %d (%s)\n", ip.protocol, pname); dprintf("Protocol: %d (%s)\n", ip.protocol, pname);
dprintf("Version: %d\n", ip.version_header_length >> 4); dprintf("Version: %d\n", ip.version_header_length >> 4);
dprintf("Header Length (32 bit words): %d (%d bytes)\n", dprintf("Header Length (32 bit words): %d (%d bytes)\n",

View File

@ -1,4 +1,5 @@
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <drivers/module.h> #include <drivers/module.h>
#include <drivers/KernelExport.h> #include <drivers/KernelExport.h>

View File

@ -63,7 +63,7 @@ status_t start_layers_manager(void)
struct net_layer_module_info *nlmi; struct net_layer_module_info *nlmi;
sz = sizeof(module_name); 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); sz = sizeof(module_name);
if (!strlen(module_name)) if (!strlen(module_name))
continue; continue;