mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
clang-tidy: use bool literals
Found with modernize-use-bool-literals Avoids implicit conversions. Signed-off-by: Rosen Penev <rosenp@gmail.com> Acked-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
parent
68b0f3029d
commit
23bd93bfb4
@ -148,7 +148,7 @@ static uint32_t replay_id_new(SpiceReplay *replay, uint32_t id)
|
||||
uint32_t *map;
|
||||
|
||||
pthread_mutex_lock(&replay->mutex);
|
||||
while (1) {
|
||||
while (true) {
|
||||
if (replay->id_free->len > 0) {
|
||||
new_id = g_array_index(replay->id_free, uint32_t, 0);
|
||||
g_array_remove_index_fast(replay->id_free, 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user