lkml.org 
[lkml]   [2011]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][rfc] Use int as return type of main in arch/x86/boot/main.c
I believe the return type of main should always be 'int'.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/x86/boot/main.c b/arch/x86/boot/main.c
index 40358c8..4b80da8 100644
--- a/arch/x86/boot/main.c
+++ b/arch/x86/boot/main.c
@@ -125,7 +125,7 @@ static void init_heap(void)
}
}

-void main(void)
+int main(void)
{
/* First, copy the boot header into the "zeropage" */
copy_boot_params();
@@ -175,4 +175,6 @@ void main(void)

/* Do the last things and invoke protected mode */
go_to_protected_mode();
+
+ return 0;
}

--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Plain text mails only, please.
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html



\
 
 \ /
  Last update: 2011-03-13 23:03    [W:0.083 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site