Commit 95981e7d authored by Josh Triplett's avatar Josh Triplett

arch/powerpc/boot/addRamDisk.c: Mark several internal functions static

Nothing outside of arch/powerpc/boot/addRamDisk.c references the
functions "get4k", "put4k", or "death".
Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
parent ad0cd62a
...@@ -58,7 +58,7 @@ static int check_elf64(void *p, int size, struct addr_range *r) ...@@ -58,7 +58,7 @@ static int check_elf64(void *p, int size, struct addr_range *r)
return 64; return 64;
} }
void get4k(FILE *file, char *buf ) static void get4k(FILE *file, char *buf )
{ {
unsigned j; unsigned j;
unsigned num = fread(buf, 1, 4096, file); unsigned num = fread(buf, 1, 4096, file);
...@@ -66,12 +66,12 @@ void get4k(FILE *file, char *buf ) ...@@ -66,12 +66,12 @@ void get4k(FILE *file, char *buf )
buf[j] = 0; buf[j] = 0;
} }
void put4k(FILE *file, char *buf ) static void put4k(FILE *file, char *buf )
{ {
fwrite(buf, 1, 4096, file); fwrite(buf, 1, 4096, file);
} }
void death(const char *msg, FILE *fdesc, const char *fname) static void death(const char *msg, FILE *fdesc, const char *fname)
{ {
fprintf(stderr, msg); fprintf(stderr, msg);
fclose(fdesc); fclose(fdesc);
......
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