lib: Change poll_funcs to take direct timevals
authorVolker Lendecke <vl@samba.org>
Tue, 20 Oct 2015 09:40:38 +0000 (11:40 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 20 Aug 2016 07:42:08 +0000 (09:42 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/poll_funcs/poll_funcs.h
lib/poll_funcs/poll_funcs_tevent.c

index 115825bd67669742edc2834a55c5c097c33a2937..b16f07f6ff87353bef0802e1416043388ac1dc03 100644 (file)
@@ -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
index 6f27eeb8aeaffde17a792a4287ec08483a446e68..4388f5d7f29424307984bec198bdd7f678ceff48 100644 (file)
@@ -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;
 }