aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/slugtool/slugtool/redboot_typo.patch
blob: e74e8fbe42ddbfbe480de7a3bf39181c094b5855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- slugtool-1.0-r0/slugtool.c~redboot_typo.patch
+++ slugtool-1.0-r0/slugtool.c
@@ -2,11 +2,11 @@
 
 #define NULLFILE ((FILE *)NULL)
 
-#define REDBOOK_START		0
-#define REDBOOK_LENGTH		0x40000
+#define REDBOOT_START		0
+#define REDBOOT_LENGTH		0x40000
 
 #define CONF_SECTION_LENGTH	0x20000
-#define CONF_HEADER		(REDBOOK_START + REDBOOK_LENGTH)
+#define CONF_HEADER		(REDBOOT_START + REDBOOT_LENGTH)
 #define CONF_HEADER_LENGTH	0x10
 #define CONF_START		(CONF_HEADER + CONF_HEADER_LENGTH)
 #define CONF_LENGTH		(CONF_SECTION_LENGTH - CONF_HEADER_LENGTH)
@@ -96,10 +96,10 @@
 	printf ("Unpacking '%s'....\n", filename);
 	fpin = fopen (filename, "r");
 
-	fseek (fpin, REDBOOK_START, SEEK_SET);
-	printf ("\tRedbook....\n");
-	fpout = fopen ("Redbook", "w");
-	writefile (REDBOOK_LENGTH, fpin, fpout);
+	fseek (fpin, REDBOOT_START, SEEK_SET);
+	printf ("\tRedboot....\n");
+	fpout = fopen ("Redboot", "w");
+	writefile (REDBOOT_LENGTH, fpin, fpout);
 	fclose (fpout);
 
 	printf ("\tReading SysConf Header....\n");
@@ -169,14 +169,14 @@
 
 	fpout = fopen (filename, "r+");
 
-	printf ("\tRedbook....\n");
-	fpin = fopen ("Redbook", "r");
+	printf ("\tRedboot....\n");
+	fpin = fopen ("Redboot", "r");
 	if (fpin == NULLFILE) {
-		printf ("File 'Redbook' not found!\n");
+		printf ("File 'Redboot' not found!\n");
 		usage ();
 	}
-	fseek (fpout, REDBOOK_START, SEEK_SET);
-	writefile (REDBOOK_LENGTH, fpin, fpout);
+	fseek (fpout, REDBOOT_START, SEEK_SET);
+	writefile (REDBOOT_LENGTH, fpin, fpout);
 	fclose (fpin);
 
 	printf ("\tSysConf....\n");