aboutsummaryrefslogtreecommitdiff
path: root/util/compatfd.c
diff options
context:
space:
mode:
authorMahmoud Mandour <ma.mandourr@gmail.com>2021-03-15 12:58:13 +0200
committerThomas Huth <thuth@redhat.com>2021-04-01 14:28:39 +0200
commit7e3a61ce621b48d4cabc181bcb979ee876e940d0 (patch)
tree9812300295ad39fd634640a94c68427cd572f202 /util/compatfd.c
parentbd74ecd1c39ca7699819ca5cf39c07f50c5f8d5d (diff)
downloadqemu-7e3a61ce621b48d4cabc181bcb979ee876e940d0.zip
qemu-7e3a61ce621b48d4cabc181bcb979ee876e940d0.tar.gz
qemu-7e3a61ce621b48d4cabc181bcb979ee876e940d0.tar.bz2
util/compatfd.c: Fixed style issues
Fixed two styling issues that caused checkpatch.pl errors. Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20210315105814.5188-2-ma.mandourr@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'util/compatfd.c')
-rw-r--r--util/compatfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/compatfd.c b/util/compatfd.c
index ee47dd8..174f394 100644
--- a/util/compatfd.c
+++ b/util/compatfd.c
@@ -20,8 +20,7 @@
#include <sys/syscall.h>
#endif
-struct sigfd_compat_info
-{
+struct sigfd_compat_info {
sigset_t mask;
int fd;
};
@@ -53,8 +52,9 @@ static void *sigwait_compat(void *opaque)
len = write(info->fd, (char *)&buffer + offset,
sizeof(buffer) - offset);
- if (len == -1 && errno == EINTR)
+ if (len == -1 && errno == EINTR) {
continue;
+ }
if (len <= 0) {
return NULL;