|
@@ -35,17 +35,17 @@
|
|
* as PROM looks for a.out image only.
|
|
* as PROM looks for a.out image only.
|
|
*/
|
|
*/
|
|
|
|
|
|
-unsigned short ld2(char *p)
|
|
|
|
|
|
+static unsigned short ld2(char *p)
|
|
{
|
|
{
|
|
return (p[0] << 8) | p[1];
|
|
return (p[0] << 8) | p[1];
|
|
}
|
|
}
|
|
|
|
|
|
-unsigned int ld4(char *p)
|
|
|
|
|
|
+static unsigned int ld4(char *p)
|
|
{
|
|
{
|
|
return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
|
|
return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
|
|
}
|
|
}
|
|
|
|
|
|
-void st4(char *p, unsigned int x)
|
|
|
|
|
|
+static void st4(char *p, unsigned int x)
|
|
{
|
|
{
|
|
p[0] = x >> 24;
|
|
p[0] = x >> 24;
|
|
p[1] = x >> 16;
|
|
p[1] = x >> 16;
|
|
@@ -53,7 +53,7 @@ void st4(char *p, unsigned int x)
|
|
p[3] = x;
|
|
p[3] = x;
|
|
}
|
|
}
|
|
|
|
|
|
-void usage(void)
|
|
|
|
|
|
+static void usage(void)
|
|
{
|
|
{
|
|
/* fs_img.gz is an image of initial ramdisk. */
|
|
/* fs_img.gz is an image of initial ramdisk. */
|
|
fprintf(stderr, "Usage: piggyback vmlinux.aout System.map fs_img.gz\n");
|
|
fprintf(stderr, "Usage: piggyback vmlinux.aout System.map fs_img.gz\n");
|
|
@@ -61,7 +61,7 @@ void usage(void)
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
|
|
-void die(char *str)
|
|
|
|
|
|
+static void die(char *str)
|
|
{
|
|
{
|
|
perror (str);
|
|
perror (str);
|
|
exit(1);
|
|
exit(1);
|