Fix some warnings, now showing up when building, thanks Ingo!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4609 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#include <net_stack_driver.h>
|
#include <net_stack_driver.h>
|
||||||
#include <netinet/in_var.h>
|
#include <netinet/in_var.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// Private includes
|
// Private includes
|
||||||
@@ -66,7 +67,7 @@ struct socket; /* forward declaration */
|
|||||||
typedef struct selecter {
|
typedef struct selecter {
|
||||||
struct selecter * next;
|
struct selecter * next;
|
||||||
thread_id thread;
|
thread_id thread;
|
||||||
int event;
|
uint32 event;
|
||||||
selectsync * sync;
|
selectsync * sync;
|
||||||
uint32 ref;
|
uint32 ref;
|
||||||
} selecter;
|
} selecter;
|
||||||
@@ -305,6 +306,7 @@ static status_t net_stack_close(void *cookie)
|
|||||||
dprintf(LOGID "net_stack_close(%p)\n", nsc);
|
dprintf(LOGID "net_stack_close(%p)\n", nsc);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
rv = B_ERROR;
|
||||||
if (nsc->socket) {
|
if (nsc->socket) {
|
||||||
// if a socket was opened on this fd, close it now.
|
// if a socket was opened on this fd, close it now.
|
||||||
rv = core->socket_close(nsc->socket);
|
rv = core->socket_close(nsc->socket);
|
||||||
@@ -698,7 +700,7 @@ static void r5_notify_select_event(selectsync * sync, uint32 ref)
|
|||||||
B_ANY_KERNEL_ADDRESS, B_READ_AREA | B_WRITE_AREA, (area_id) sync);
|
B_ANY_KERNEL_ADDRESS, B_READ_AREA | B_WRITE_AREA, (area_id) sync);
|
||||||
if (area < B_OK) {
|
if (area < B_OK) {
|
||||||
#if SHOW_INSANE_DEBUGGING
|
#if SHOW_INSANE_DEBUGGING
|
||||||
dprintf(LOGID "r5_notify_select_event: clone_area(%d) failed -> %d!\n", (area_id) sync, area);
|
dprintf(LOGID "r5_notify_select_event: clone_area(%d) failed -> %d!\n", (int) sync, (int) area);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user