ctl-server: Fix sign compare warning

pull/195/head
Andri Yngvason 2022-11-26 18:17:30 +00:00
parent 8a70c54928
commit ac5e207321
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ static struct cmd_response* generate_vnc_client_list(struct ctl* self)
struct cmd_response* response = cmd_ok(); struct cmd_response* response = cmd_ok();
response->data = json_array(); 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); json_t* packed = json_pack("{s:s}", "id", clients[i].id);
if (clients[i].hostname[0] != '\0') if (clients[i].hostname[0] != '\0')
json_object_set_new(packed, "hostname", json_object_set_new(packed, "hostname",