From 393352a70f29189d8eed9127bce386a88501a3c5 Mon Sep 17 00:00:00 2001 From: Tobias Anderberg Date: Wed, 27 Aug 2003 13:13:47 +0000 Subject: Cosmetic changes. --- libc/sysdeps/linux/cris/bits/byteswap.h | 7 ++++--- libc/sysdeps/linux/cris/bits/syscalls.h | 2 +- libc/sysdeps/linux/cris/crt0.c | 4 +++- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/cris/bits/byteswap.h b/libc/sysdeps/linux/cris/bits/byteswap.h index 60544a0ad..f152d73e8 100644 --- a/libc/sysdeps/linux/cris/bits/byteswap.h +++ b/libc/sysdeps/linux/cris/bits/byteswap.h @@ -1,3 +1,6 @@ +#ifndef _BITS_BYTESWAP_H +#define _BITS_BYTESWAP_H 1 + #define ___swab16(x) \ ({ \ unsigned short __x = (x); \ @@ -42,6 +45,4 @@ static inline unsigned long __fswab32(unsigned long x) ___swab32((x)) : \ __fswab32((x))) - - - +#endif /* _BITS_BYTESWAP_H */ diff --git a/libc/sysdeps/linux/cris/bits/syscalls.h b/libc/sysdeps/linux/cris/bits/syscalls.h index 4e9d53e84..5f587854f 100644 --- a/libc/sysdeps/linux/cris/bits/syscalls.h +++ b/libc/sysdeps/linux/cris/bits/syscalls.h @@ -6,7 +6,7 @@ #endif /* Include the __NR_ definitions. */ -#include +#include #if 0 #ifndef __set_errno diff --git a/libc/sysdeps/linux/cris/crt0.c b/libc/sysdeps/linux/cris/crt0.c index 442a1c9ec..668ded1f8 100644 --- a/libc/sysdeps/linux/cris/crt0.c +++ b/libc/sysdeps/linux/cris/crt0.c @@ -3,12 +3,14 @@ /* The first piece of initialized data. */ int __data_start = 0; +static void start1 (int argc, char **argv) __attribute__ ((used, noreturn)); + /* * It is important that this be the first function. * This file is the first thing in the text section. */ void -_start () +_start (void) { /* * On the stack we have argc. We can calculate argv/envp -- cgit v1.2.3