]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-varlink: make the argument type consistent with header
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Aug 2024 21:29:15 +0000 (06:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 Aug 2024 20:35:07 +0000 (05:35 +0900)
src/libsystemd/sd-varlink/sd-varlink.c

index 1369dfbb77364cbb7cbc1e9883b1098d08cf6320..447d5c333c040884675aa7772ea296c40c6d5a1f 100644 (file)
@@ -1569,7 +1569,7 @@ static void handle_revents(sd_varlink *v, int revents) {
         }
 }
 
-_public_ int sd_varlink_wait(sd_varlink *v, usec_t timeout) {
+_public_ int sd_varlink_wait(sd_varlink *v, uint64_t timeout) {
         int r, events;
         usec_t t;
 
@@ -1683,7 +1683,7 @@ _public_ int sd_varlink_get_events(sd_varlink *v) {
         return ret;
 }
 
-_public_ int sd_varlink_get_timeout(sd_varlink *v, usec_t *ret) {
+_public_ int sd_varlink_get_timeout(sd_varlink *v, uint64_t *ret) {
         assert_return(v, -EINVAL);
 
         if (v->state == VARLINK_DISCONNECTED)
@@ -2817,7 +2817,7 @@ _public_ int sd_varlink_get_peer_pidfd(sd_varlink *v) {
         return v->peer_pidfd;
 }
 
-_public_ int sd_varlink_set_relative_timeout(sd_varlink *v, usec_t timeout) {
+_public_ int sd_varlink_set_relative_timeout(sd_varlink *v, uint64_t timeout) {
         assert_return(v, -EINVAL);
         assert_return(timeout > 0, -EINVAL);