ctdb-killtcp: Avoid unnecessary dependency on lib/util/time.h
authorMartin Schwenke <martin@meltin.net>
Sun, 6 Mar 2016 19:29:19 +0000 (06:29 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 1 Apr 2016 02:42:11 +0000 (04:42 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/killtcp.c

index 3b5cf1aaf81ffb4fe81f1f679b9d3409df635b41..be86d9209b8fde12e4419db008fd48ebde777322 100644 (file)
@@ -23,7 +23,6 @@
 #include "system/network.h"
 
 #include "lib/util/debug.h"
-#include "lib/util/time.h"
 
 #include "ctdb_private.h"
 
@@ -192,7 +191,7 @@ static void ctdb_tickle_sentenced_connections(struct tevent_context *ev,
        /* try tickling them again in a seconds time
         */
        tevent_add_timer(ev, killtcp,
-                        timeval_current_ofs(1, 0),
+                        tevent_timeval_current_ofs(1, 0),
                         ctdb_tickle_sentenced_connections, killtcp);
 }
 
@@ -288,7 +287,7 @@ int ctdb_killtcp(struct tevent_context *ev,
                /* We also need to set up some events to tickle all these connections
                   until they are all reset
                */
-               tevent_add_timer(ev, killtcp, timeval_current_ofs(1, 0),
+               tevent_add_timer(ev, killtcp, tevent_timeval_current_ofs(1, 0),
                                 ctdb_tickle_sentenced_connections, killtcp);
        }