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 @@
*/
#include <stdarg.h>
int (*prom)();
int (*prom)(void *args);
void *chosen_handle;
void *stdin;
......@@ -30,7 +30,7 @@ extern int strlen(const char *s);
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 @@ write(void *handle, void *ptr, int nb)
args.addr = ptr;
args.len = nb;
args.actual = -1;
(*prom)(&args);
prom(&args);
return args.actual;
}
......@@ -211,7 +211,7 @@ fputs(char *str, void *f)
}
int
readchar()
readchar(void)
{
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