mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 09:04:33 +00:00
red-record-qxl: add curly braces to empty while loop
Spice coding style suggests to use curly braces for while blocks. Some prefer the block to not be empty so continue is untouched. Signed-off-by: Uri Lublin <uril@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
547f9f4387
commit
4be1a6ec8c
@ -847,8 +847,9 @@ static void child_output_setup(gpointer user_data)
|
||||
{
|
||||
int fd = GPOINTER_TO_INT(user_data);
|
||||
|
||||
while (dup2(fd, STDOUT_FILENO) < 0 && errno == EINTR)
|
||||
while (dup2(fd, STDOUT_FILENO) < 0 && errno == EINTR) {
|
||||
continue;
|
||||
}
|
||||
close(fd);
|
||||
|
||||
// make sure file is not closed calling exec()
|
||||
@ -890,8 +891,9 @@ RedRecord *red_record_new(const char *filename)
|
||||
fclose(f);
|
||||
spice_error("failed to setup filter for replay");
|
||||
}
|
||||
while (dup2(fd_in, fileno(f)) < 0 && errno == EINTR)
|
||||
while (dup2(fd_in, fileno(f)) < 0 && errno == EINTR) {
|
||||
continue;
|
||||
}
|
||||
close(fd_in);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user