X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fsocket.c;fp=palacios%2Fsrc%2Fgeekos%2Fsocket.c;h=661970e1cef3b85869f10002721e7e0b80e67698;hb=f662be2b6bac1f62c457b663598bfde135f48f50;hp=63b3ce1f4482c384bdcb8c830ef362b40d2a6073;hpb=cd5cf6122c68a9e8bd2ce010554046172706e28c;p=palacios.git diff --git a/palacios/src/geekos/socket.c b/palacios/src/geekos/socket.c index 63b3ce1..661970e 100644 --- a/palacios/src/geekos/socket.c +++ b/palacios/src/geekos/socket.c @@ -28,7 +28,7 @@ void socket_appcall(void); static int Packet_Received(struct NE2K_Packet_Info* info, uchar_t *pkt); -static void periodic_caller(int timer_id); +static void periodic_caller(int timer_id, void * arg); void init_socket_layer() { int i = 0; @@ -52,7 +52,7 @@ void init_socket_layer() { Init_Ne2k(&Packet_Received); iflag = Begin_Int_Atomic(); - Start_Timer(2, periodic_caller); + Start_Timer(2, periodic_caller, NULL); End_Int_Atomic(iflag); } @@ -108,7 +108,7 @@ struct socket * get_socket_from_fd(int fd) { -static void periodic_caller(int timer_id) { +static void periodic_caller(int timer_id, void * arg) { int i; //handle the periodic calls of uIP