patch-2.4.19 linux-2.4.19/arch/ppc/boot/chrp/start.c

Next file: linux-2.4.19/arch/ppc/boot/common/Makefile
Previous file: linux-2.4.19/arch/ppc/boot/chrp/main.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/ppc/boot/chrp/start.c linux-2.4.19/arch/ppc/boot/chrp/start.c
@@ -11,7 +11,7 @@
  */
 #include <stdarg.h>
 
-int (*prom)();
+int (*prom)(void *args);
 
 void *chosen_handle;
 void *stdin;
@@ -30,7 +30,7 @@
 void
 start(int a1, int a2, void *promptr)
 {
-    prom = (int (*)()) promptr;
+    prom = promptr;
     chosen_handle = finddevice("/chosen");
     if (chosen_handle == (void *) -1)
 	exit();
@@ -65,7 +65,7 @@
     args.addr = ptr;
     args.len = nb;
     args.actual = -1;
-    (*prom)(&args);
+    prom(&args);
     return args.actual;
 }
 
@@ -211,7 +211,7 @@
 }
 
 int
-readchar()
+readchar(void)
 {
     char ch;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)