X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=log.c;h=6f4b7380198e7ad37dbf367d36b43b39a704e979;hp=55f1ee125cbfba848002f1c536e8ad89e3bb3247;hb=5a8a70536e4fa79612405a88c50743976abb2d50;hpb=59230b9b9fc44453f24c6b3cf33a0f4c570a3563 diff --git a/log.c b/log.c index 55f1ee1..6f4b738 100644 --- a/log.c +++ b/log.c @@ -19,7 +19,7 @@ static void vMessage(uint32_t class, const char *message, va_list args) FILE *dest=stdout; #define MESSAGE_BUFLEN 1023 static char buff[MESSAGE_BUFLEN+1]={0,}; - uint32_t bp; + size_t bp; char *nlp; if (secnet_is_daemon) { @@ -488,8 +488,7 @@ struct fdlog { }; static int log_from_fd_beforepoll(void *sst, struct pollfd *fds, int *nfds_io, - int *timeout_io, - const struct timeval *tv_now, uint64_t *now) + int *timeout_io) { struct fdlog *st=sst; if (!st->finished) { @@ -500,8 +499,7 @@ static int log_from_fd_beforepoll(void *sst, struct pollfd *fds, int *nfds_io, return 0; } -static void log_from_fd_afterpoll(void *sst, struct pollfd *fds, int nfds, - const struct timeval *tv_now, uint64_t *now) +static void log_from_fd_afterpoll(void *sst, struct pollfd *fds, int nfds) { struct fdlog *st=sst; int r,remain,i;