The getter and setter use visit_type_int64, not visit_type_int.

Fixes: 0d9d86fb4df4 ("iothread: add polling parameters")
Signed-off-by: Marc-André Lureau <[email protected]>
---
 iothread.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/iothread.c b/iothread.c
index 3558535b40f5..76eea6df3861 100644
--- a/iothread.c
+++ b/iothread.c
@@ -315,19 +315,19 @@ static void iothread_class_init(ObjectClass *klass, const 
void *class_data)
     bc->init = iothread_init;
     bc->update_params = iothread_set_aio_context_params;
 
-    object_class_property_add(klass, "poll-max-ns", "int",
+    object_class_property_add(klass, "poll-max-ns", "int64",
                               iothread_get_poll_param,
                               iothread_set_poll_param,
                               NULL, &poll_max_ns_info);
-    object_class_property_add(klass, "poll-grow", "int",
+    object_class_property_add(klass, "poll-grow", "int64",
                               iothread_get_poll_param,
                               iothread_set_poll_param,
                               NULL, &poll_grow_info);
-    object_class_property_add(klass, "poll-shrink", "int",
+    object_class_property_add(klass, "poll-shrink", "int64",
                               iothread_get_poll_param,
                               iothread_set_poll_param,
                               NULL, &poll_shrink_info);
-    object_class_property_add(klass, "poll-weight", "int",
+    object_class_property_add(klass, "poll-weight", "int64",
                               iothread_get_poll_param,
                               iothread_set_poll_param,
                               NULL, &poll_weight_info);

-- 
2.55.0.543.g5ebe2ebe4ea8


Reply via email to