Skip to content

Commit

Permalink
arch/powerpc/boot/addRamDisk.c: Mark several internal functions static
Browse files Browse the repository at this point in the history
Nothing outside of arch/powerpc/boot/addRamDisk.c references the
functions "get4k", "put4k", or "death".

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
Josh Triplett committed Nov 15, 2009
1 parent ad0cd62 commit 95981e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/powerpc/boot/addRamDisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@ static int check_elf64(void *p, int size, struct addr_range *r)

return 64;
}
void get4k(FILE *file, char *buf )
static void get4k(FILE *file, char *buf )
{
unsigned j;
unsigned num = fread(buf, 1, 4096, file);
for ( j=num; j<4096; ++j )
buf[j] = 0;
}

void put4k(FILE *file, char *buf )
static void put4k(FILE *file, char *buf )
{
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);
fclose(fdesc);
Expand Down

0 comments on commit 95981e7

Please sign in to comment.