Commit 174f05b2 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] ppc chrp/start.c warnings removal

Rusty Russell <rusty@rustcorp.com.au>: Finally squish those chrp_start.c warnings:
  They finally irritated me enough to patch.  2.5, should apply against 2.4.
parent 0140603e
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
#include <stdarg.h> #include <stdarg.h>
int (*prom)(); int (*prom)(void *args);
void *chosen_handle; void *chosen_handle;
void *stdin; void *stdin;
...@@ -30,7 +30,7 @@ extern int strlen(const char *s); ...@@ -30,7 +30,7 @@ extern int strlen(const char *s);
void void
start(int a1, int a2, void *promptr) start(int a1, int a2, void *promptr)
{ {
prom = (int (*)()) promptr; prom = promptr;
chosen_handle = finddevice("/chosen"); chosen_handle = finddevice("/chosen");
if (chosen_handle == (void *) -1) if (chosen_handle == (void *) -1)
exit(); exit();
...@@ -65,7 +65,7 @@ write(void *handle, void *ptr, int nb) ...@@ -65,7 +65,7 @@ write(void *handle, void *ptr, int nb)
args.addr = ptr; args.addr = ptr;
args.len = nb; args.len = nb;
args.actual = -1; args.actual = -1;
(*prom)(&args); prom(&args);
return args.actual; return args.actual;
} }
...@@ -211,7 +211,7 @@ fputs(char *str, void *f) ...@@ -211,7 +211,7 @@ fputs(char *str, void *f)
} }
int int
readchar() readchar(void)
{ {
char ch; char ch;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment