diff --git a/src/modules/files/sendfile.c b/src/modules/files/sendfile.c index 07591e2daf9b8826512eab20715ceabb70e7dc43..bc195bc1106db797e9005ea07a72c2443d32bfd6 100644 --- a/src/modules/files/sendfile.c +++ b/src/modules/files/sendfile.c @@ -1,5 +1,5 @@ /* - * $Id: sendfile.c,v 1.44 2000/08/19 11:45:05 grubba Exp $ + * $Id: sendfile.c,v 1.45 2000/08/19 11:45:27 grubba Exp $ * * Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously. * @@ -26,6 +26,7 @@ #include "callback.h" #include "backend.h" #include "module_support.h" +#include "bignum.h" #include "file.h" diff --git a/src/modules/files/udp.c b/src/modules/files/udp.c index b9909e8cb77127853e9cfb29c71acd2935452100..dc3295076ab1acf371ef2fdb740aa4921442383f 100644 --- a/src/modules/files/udp.c +++ b/src/modules/files/udp.c @@ -1,5 +1,5 @@ /* - * $Id: udp.c,v 1.14 2000/08/10 08:20:45 grubba Exp $ + * $Id: udp.c,v 1.15 2000/08/19 11:47:22 grubba Exp $ */ #define NO_PIKE_SHORTHAND @@ -7,7 +7,7 @@ #include "file_machine.h" -RCSID("$Id: udp.c,v 1.14 2000/08/10 08:20:45 grubba Exp $"); +RCSID("$Id: udp.c,v 1.15 2000/08/19 11:47:22 grubba Exp $"); #include "fdlib.h" #include "interpret.h" #include "svalue.h" @@ -22,6 +22,7 @@ RCSID("$Id: udp.c,v 1.14 2000/08/10 08:20:45 grubba Exp $"); #include "signal_handler.h" #include "pike_types.h" #include "threads.h" +#include "bignum.h" #include "module_support.h" @@ -277,8 +278,8 @@ void udp_wait(INT32 args) FD_ZERO(&rset); FD_SET(fd, &rset); - tv.tv_sec = (int)timeout; - tv.tv_usec = (int)(timeout * 1000000.0); + tv.tv_sec = DO_NOT_WARN((int)timeout); + tv.tv_usec = DO_NOT_WARN((int)(timeout * 1000000.0)); res = select(fd+1, &rset, NULL, NULL, &tv); e = errno; @@ -469,7 +470,7 @@ void udp_sendto(INT32 args) } } pop_n_elems(args); - push_int(DO_NOT_WARN(res)); + push_int64(res); }