[Spice-commits] src/continuation.c src/coroutine_ucontext.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 2 08:28:51 UTC 2019
src/continuation.c | 4 ++--
src/coroutine_ucontext.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4bdada156b4bf0bbb25910ff208cdb81fabd49a1
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Tue Jun 25 11:10:46 2019 +0100
coroutine: Fix some indentation
These files have different indentation rules (8 spaces tabs instead
of 4 spaces).
Fix some wrong indentation.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/src/continuation.c b/src/continuation.c
index adce858..d0b7745 100644
--- a/src/continuation.c
+++ b/src/continuation.c
@@ -85,8 +85,8 @@ int cc_swap(struct continuation *from, struct continuation *to)
return -1;
else if (to->exited == 0)
to->exited = 1; // so when coroutine finishes
- else if (to->exited == 1)
- return 1; // it ends up here
+ else if (to->exited == 1)
+ return 1; // it ends up here
if (_setjmp(from->jmp) == 0)
_longjmp(to->jmp, 1);
diff --git a/src/coroutine_ucontext.c b/src/coroutine_ucontext.c
index d709a33..d4e57e6 100644
--- a/src/coroutine_ucontext.c
+++ b/src/coroutine_ucontext.c
@@ -139,7 +139,7 @@ void *coroutine_yield(void *arg)
gboolean coroutine_is_main(struct coroutine *co)
{
- return (co == &leader);
+ return (co == &leader);
}
/*
* Local variables:
More information about the Spice-commits
mailing list