]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/slugtool/slugtool/redboot_typo.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / slugtool / slugtool / redboot_typo.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- slugtool-1.0-r0/slugtool.c~redboot_typo.patch
7 +++ slugtool-1.0-r0/slugtool.c
8 @@ -2,11 +2,11 @@
9  
10  #define NULLFILE ((FILE *)NULL)
11  
12 -#define REDBOOK_START          0
13 -#define REDBOOK_LENGTH         0x40000
14 +#define REDBOOT_START          0
15 +#define REDBOOT_LENGTH         0x40000
16  
17  #define CONF_SECTION_LENGTH    0x20000
18 -#define CONF_HEADER            (REDBOOK_START + REDBOOK_LENGTH)
19 +#define CONF_HEADER            (REDBOOT_START + REDBOOT_LENGTH)
20  #define CONF_HEADER_LENGTH     0x10
21  #define CONF_START             (CONF_HEADER + CONF_HEADER_LENGTH)
22  #define CONF_LENGTH            (CONF_SECTION_LENGTH - CONF_HEADER_LENGTH)
23 @@ -96,10 +96,10 @@
24         printf ("Unpacking '%s'....\n", filename);
25         fpin = fopen (filename, "r");
26  
27 -       fseek (fpin, REDBOOK_START, SEEK_SET);
28 -       printf ("\tRedbook....\n");
29 -       fpout = fopen ("Redbook", "w");
30 -       writefile (REDBOOK_LENGTH, fpin, fpout);
31 +       fseek (fpin, REDBOOT_START, SEEK_SET);
32 +       printf ("\tRedboot....\n");
33 +       fpout = fopen ("Redboot", "w");
34 +       writefile (REDBOOT_LENGTH, fpin, fpout);
35         fclose (fpout);
36  
37         printf ("\tReading SysConf Header....\n");
38 @@ -169,14 +169,14 @@
39  
40         fpout = fopen (filename, "r+");
41  
42 -       printf ("\tRedbook....\n");
43 -       fpin = fopen ("Redbook", "r");
44 +       printf ("\tRedboot....\n");
45 +       fpin = fopen ("Redboot", "r");
46         if (fpin == NULLFILE) {
47 -               printf ("File 'Redbook' not found!\n");
48 +               printf ("File 'Redboot' not found!\n");
49                 usage ();
50         }
51 -       fseek (fpout, REDBOOK_START, SEEK_SET);
52 -       writefile (REDBOOK_LENGTH, fpin, fpout);
53 +       fseek (fpout, REDBOOT_START, SEEK_SET);
54 +       writefile (REDBOOT_LENGTH, fpin, fpout);
55         fclose (fpin);
56  
57         printf ("\tSysConf....\n");