[Spice-devel] [PATCH spice-gtk] coroutine: Fix some indentation

Frediano Ziglio fziglio at redhat.com
Tue Jun 25 10:12:16 UTC 2019


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>
---
 src/continuation.c       | 4 ++--
 src/coroutine_ucontext.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/continuation.c b/src/continuation.c
index adce8588..d0b77454 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 d709a336..d4e57e6e 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:
-- 
2.20.1



More information about the Spice-devel mailing list