]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
_dbus_loop_iterate: `timeout` can be defined as int
authorXin Shi <shixin21@huawei.com>
Wed, 4 Jan 2023 02:19:56 +0000 (10:19 +0800)
committerXin Shi <shixin21@huawei.com>
Wed, 4 Jan 2023 02:24:46 +0000 (10:24 +0800)
all places where `timeout` is used can be represented as int.
This MR is a response to issue #430.

Signed-off-by: Xin Shi <shixin21@huawei.com>
dbus/dbus-mainloop.c

index c4b7151be70150958cd5fcc238293c5c876fa2b3..ffc692fbb0da0ac61f3c174b67057f6a30f9668a 100644 (file)
@@ -575,7 +575,7 @@ _dbus_loop_iterate (DBusLoop     *loop,
   DBusList *link;
   int n_ready;
   int initial_serial;
-  long timeout;
+  int timeout;
   int orig_depth;
 
   retval = FALSE;