Fix some warnings, now showing up when building, thanks Ingo!

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4610 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2003-09-10 11:13:35 +00:00
parent 89a650ddad
commit 5bae946703
@@ -130,7 +130,7 @@ static void r5_notify_select_event(selectsync *sync, uint32 ref);
static status_t init_connection(void **cookie); static status_t init_connection(void **cookie);
static void shutdown_connection(net_server_cookie *nsc); static void shutdown_connection(net_server_cookie *nsc);
static net_command *get_command(net_server_cookie *nsc, int32 *index); static net_command *get_command(net_server_cookie *nsc, int32 *index);
static status_t execute_command(net_server_cookie *nsc, int32 op, void *data, uint32 length); static status_t execute_command(net_server_cookie *nsc, uint32 op, void *data, uint32 length);
/* /*
* Global variables * Global variables
@@ -697,7 +697,7 @@ set_command_areas(net_command *command)
static status_t static status_t
execute_command(net_server_cookie *nsc, int32 op, void *data, uint32 length) execute_command(net_server_cookie *nsc, uint32 op, void *data, uint32 length)
{ {
uint32 command_index; uint32 command_index;
net_command *command = get_command(nsc, (long *) &command_index); net_command *command = get_command(nsc, (long *) &command_index);
@@ -751,7 +751,7 @@ init_connection(void **cookie)
{ {
net_connection connection; net_connection connection;
ssize_t bytes; ssize_t bytes;
int32 msg; uint32 msg;
net_server_cookie *nsc = (net_server_cookie *) malloc(sizeof(net_server_cookie)); net_server_cookie *nsc = (net_server_cookie *) malloc(sizeof(net_server_cookie));
if (nsc == NULL) if (nsc == NULL)