From: Volker Lendecke Date: Tue, 20 Oct 2015 09:40:38 +0000 (+0200) Subject: lib: Change poll_funcs to take direct timevals X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=dccd96867708e419c9e596a2fc518bd0041ca5c6;p=metze%2Fsamba%2Fwip.git lib: Change poll_funcs to take direct timevals Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/lib/poll_funcs/poll_funcs.h b/lib/poll_funcs/poll_funcs.h index 115825bd6766..b16f07f6ff87 100644 --- a/lib/poll_funcs/poll_funcs.h +++ b/lib/poll_funcs/poll_funcs.h @@ -99,7 +99,7 @@ struct poll_funcs { */ struct poll_timeout *(*timeout_new)( - const struct poll_funcs *funcs, const struct timeval *tv, + const struct poll_funcs *funcs, const struct timeval tv, void (*callback)(struct poll_timeout *t, void *private_data), void *private_data); @@ -111,7 +111,7 @@ struct poll_funcs { */ void (*timeout_update)(struct poll_timeout *t, - const struct timeval *tv); + const struct timeval tv); /** * @brief Free a poll_timeout diff --git a/lib/poll_funcs/poll_funcs_tevent.c b/lib/poll_funcs/poll_funcs_tevent.c index 6f27eeb8aeaf..4388f5d7f294 100644 --- a/lib/poll_funcs/poll_funcs_tevent.c +++ b/lib/poll_funcs/poll_funcs_tevent.c @@ -244,7 +244,7 @@ static void tevent_watch_free(struct poll_watch *w) } static struct poll_timeout *tevent_timeout_new( - const struct poll_funcs *funcs, const struct timeval *tv, + const struct poll_funcs *funcs, const struct timeval tv, void (*callback)(struct poll_timeout *t, void *private_data), void *private_data) { @@ -253,7 +253,7 @@ static struct poll_timeout *tevent_timeout_new( } static void tevent_timeout_update(struct poll_timeout *t, - const struct timeval *tv) + const struct timeval tv) { return; }