From ac5e2073211d3a4f62d95eb319c41989973a11ad Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 26 Nov 2022 18:17:30 +0000 Subject: [PATCH] ctl-server: Fix sign compare warning --- src/ctl-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctl-server.c b/src/ctl-server.c index 8fd5e31..c9c52f1 100644 --- a/src/ctl-server.c +++ b/src/ctl-server.c @@ -434,7 +434,7 @@ static struct cmd_response* generate_vnc_client_list(struct ctl* self) struct cmd_response* response = cmd_ok(); response->data = json_array(); - for (int i = 0; i < num_clients; ++i) { + for (size_t i = 0; i < num_clients; ++i) { json_t* packed = json_pack("{s:s}", "id", clients[i].id); if (clients[i].hostname[0] != '\0') json_object_set_new(packed, "hostname",