From: Jack Lange Date: Tue, 2 Sep 2008 21:05:24 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: 1.0~54 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=e1fa6479b658cd1c002795404cbe7c8777e71e44;p=palacios.git *** empty log message *** --- diff --git a/palacios/include/geekos/socket.h b/palacios/include/geekos/socket.h index a868851..7b919f4 100644 --- a/palacios/include/geekos/socket.h +++ b/palacios/include/geekos/socket.h @@ -1,6 +1,8 @@ #ifndef GEEKOS_SOCKET_H #define GEEKOS_SOCKET_H +#include + struct socket { int in_use; diff --git a/palacios/src/geekos/socket.c b/palacios/src/geekos/socket.c index 255afb3..322e2d3 100644 --- a/palacios/src/geekos/socket.c +++ b/palacios/src/geekos/socket.c @@ -10,8 +10,8 @@ void init_network() { for (i = 0; i < MAX_SOCKS; i++) { sockets[i].in_use = 0; - init_queue(&(sockets[i].send_queue)) - init_queue(&(sockets[i].recv_queue)) + init_queue(&(sockets[i].send_queue)); + init_queue(&(sockets[i].recv_queue)); } // set up interrupt handler @@ -51,5 +51,6 @@ int connect(const uint_t ip_addr) { + return sockfd; }