summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/avr32/clone.c
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-04-24 07:08:48 +0000
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-04-24 07:08:48 +0000
commit76dc6857465109973ee79a8517ed27680289c36d (patch)
treede744555e38d43a8b09c667689d1bf099e0b6766 /libc/sysdeps/linux/avr32/clone.c
parent18f85730003544cb880641e0bb12b5901dfe1757 (diff)
Fix whitespace damage in AVR32 in libc sysdeps AVR32 specific Linux files.
Diffstat (limited to 'libc/sysdeps/linux/avr32/clone.c')
-rw-r--r--libc/sysdeps/linux/avr32/clone.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libc/sysdeps/linux/avr32/clone.c b/libc/sysdeps/linux/avr32/clone.c
index c5f5a74a8..e43b0f3bf 100644
--- a/libc/sysdeps/linux/avr32/clone.c
+++ b/libc/sysdeps/linux/avr32/clone.c
@@ -16,26 +16,26 @@
*/
int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg)
{
- register int (*_fn)(void *arg) = fn;
- register void *_arg = arg;
- int err;
+ register int (*_fn)(void *arg) = fn;
+ register void *_arg = arg;
+ int err;
- /* Sanity check the arguments */
- err = -EINVAL;
- if (!fn)
- goto syscall_error;
- if (!child_stack)
- goto syscall_error;
+ /* Sanity check the arguments */
+ err = -EINVAL;
+ if (!fn)
+ goto syscall_error;
+ if (!child_stack)
+ goto syscall_error;
- err = INLINE_SYSCALL(clone, 2, flags, child_stack);
- if (err < 0)
- goto syscall_error;
- else if (err != 0)
- return err;
+ err = INLINE_SYSCALL(clone, 2, flags, child_stack);
+ if (err < 0)
+ goto syscall_error;
+ else if (err != 0)
+ return err;
- _exit(_fn(_arg));
+ _exit(_fn(_arg));
syscall_error:
- __set_errno (-err);
- return -1;
+ __set_errno (-err);
+ return -1;
}