[spice-gtk] coroutine: Fix some indentation

Submitted by Frediano Ziglio on June 25, 2019, 10:12 a.m.

Details

Message ID 20190625101217.13470-1-fziglio@redhat.com
State Accepted
Commit 4bdada156b4bf0bbb25910ff208cdb81fabd49a1
Headers show
Series "coroutine: Fix some indentation" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio June 25, 2019, 10:12 a.m.
These files have different indentation rules (8 spaces tabs instead
of 4 spaces).
Fix some wrong indentation.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 src/continuation.c       | 4 ++--
 src/coroutine_ucontext.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

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: