lib: Fix poll_func_timeout prototypes
authorVolker Lendecke <vl@samba.org>
Mon, 19 Oct 2015 19:23:13 +0000 (21:23 +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 6072eb5b035990054aba605b1d1a6ec321a76e5b..115825bd67669742edc2834a55c5c097c33a2937 100644 (file)
@@ -92,7 +92,7 @@ struct poll_funcs {
         *
         * @param[in] funcs The callback array
         * @param[in] tv The time when the timeout should trigger
-        * @param[in] callback Function to call at time "ts"
+        * @param[in] callback Function to call at time "tv"
         * @param[in] private_data Pointer to give back to callback
         *
         * @return A new poll_timeout struct
@@ -107,11 +107,11 @@ struct poll_funcs {
         * @brief Change the timeout of a watch
         *
         * @param[in] t The timeout watch to change
-        * @param[in] ts The new trigger time
+        * @param[in] tv The new trigger time
         */
 
        void (*timeout_update)(struct poll_timeout *t,
-                              const struct timespec *ts);
+                              const struct timeval *tv);
 
        /**
         * @brief Free a poll_timeout
index 8fdf08061e653f4d35083b4056bfb6f58d520df7..6f27eeb8aeaffde17a792a4287ec08483a446e68 100644 (file)
@@ -253,7 +253,7 @@ static struct poll_timeout *tevent_timeout_new(
 }
 
 static void tevent_timeout_update(struct poll_timeout *t,
-                                 const struct timespec *ts)
+                                 const struct timeval *tv)
 {
        return;
 }