diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-04-10 21:16:00 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-04-10 21:16:00 +0000 |
commit | afecfe46f314e9b5ba1d5d1d98d3e521be5f00b0 (patch) | |
tree | d18d6c67bde6491e297fa54331a5093000df3a49 | |
parent | f8f1f3e8119a03f12e29b322c7e907d5581d7983 (diff) | |
download | rockbox-afecfe46f314e9b5ba1d5d1d98d3e521be5f00b0.tar.gz rockbox-afecfe46f314e9b5ba1d5d1d98d3e521be5f00b0.zip |
cleanup code for picky compiler warning options
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17060 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | tools/bmp2rb.c | 23 | ||||
-rw-r--r-- | tools/convbdf.c | 34 | ||||
-rw-r--r-- | tools/gigabeat.c | 4 | ||||
-rw-r--r-- | tools/gigabeats.c | 4 | ||||
-rw-r--r-- | tools/iriver.c | 20 | ||||
-rw-r--r-- | tools/mktccboot.c | 3 | ||||
-rw-r--r-- | tools/scramble.c | 12 |
7 files changed, 54 insertions, 46 deletions
diff --git a/tools/bmp2rb.c b/tools/bmp2rb.c index 7848298136..10481917a4 100644 --- a/tools/bmp2rb.c +++ b/tools/bmp2rb.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <stdlib.h> | 32 | #include <stdlib.h> |
33 | #include <string.h> | 33 | #include <string.h> |
34 | #include <stdbool.h> | 34 | #include <stdbool.h> |
35 | #include <unistd.h> | ||
35 | 36 | ||
36 | #include <sys/types.h> | 37 | #include <sys/types.h> |
37 | #include <sys/stat.h> | 38 | #include <sys/stat.h> |
@@ -140,7 +141,7 @@ int read_bmp_file(char* filename, | |||
140 | 141 | ||
141 | if (compression != 0) | 142 | if (compression != 0) |
142 | { | 143 | { |
143 | debugf("error - Unsupported compression %ld\n", compression); | 144 | debugf("error - Unsupported compression %d\n", compression); |
144 | close(fd); | 145 | close(fd); |
145 | return 3; | 146 | return 3; |
146 | } | 147 | } |
@@ -154,7 +155,7 @@ int read_bmp_file(char* filename, | |||
154 | numcolors = 1 << depth; | 155 | numcolors = 1 << depth; |
155 | 156 | ||
156 | if (read(fd, &palette[0], numcolors * sizeof(struct RGBQUAD)) | 157 | if (read(fd, &palette[0], numcolors * sizeof(struct RGBQUAD)) |
157 | != numcolors * sizeof(struct RGBQUAD)) | 158 | != (int)(numcolors * sizeof(struct RGBQUAD))) |
158 | { | 159 | { |
159 | debugf("error - Can't read bitmap's color palette\n"); | 160 | debugf("error - Can't read bitmap's color palette\n"); |
160 | close(fd); | 161 | close(fd); |
@@ -459,8 +460,8 @@ void generate_c_source(char *id, char* header_dir, int width, int height, | |||
459 | return; | 460 | return; |
460 | } | 461 | } |
461 | fprintf(fh, | 462 | fprintf(fh, |
462 | "#define BMPHEIGHT_%s %ld\n" | 463 | "#define BMPHEIGHT_%s %d\n" |
463 | "#define BMPWIDTH_%s %ld\n", | 464 | "#define BMPWIDTH_%s %d\n", |
464 | id, height, id, width); | 465 | id, height, id, width); |
465 | if (t_depth <= 8) | 466 | if (t_depth <= 8) |
466 | fprintf(fh, "extern const unsigned char %s[];\n", id); | 467 | fprintf(fh, "extern const unsigned char %s[];\n", id); |
@@ -470,8 +471,8 @@ void generate_c_source(char *id, char* header_dir, int width, int height, | |||
470 | fclose(fh); | 471 | fclose(fh); |
471 | } else { | 472 | } else { |
472 | fprintf(f, | 473 | fprintf(f, |
473 | "#define BMPHEIGHT_%s %ld\n" | 474 | "#define BMPHEIGHT_%s %d\n" |
474 | "#define BMPWIDTH_%s %ld\n", | 475 | "#define BMPWIDTH_%s %d\n", |
475 | id, height, id, width); | 476 | id, height, id, width); |
476 | } | 477 | } |
477 | 478 | ||
@@ -497,7 +498,7 @@ void generate_c_source(char *id, char* header_dir, int width, int height, | |||
497 | fprintf(f, "\n};\n"); | 498 | fprintf(f, "\n};\n"); |
498 | } | 499 | } |
499 | 500 | ||
500 | void generate_raw_file(char *id, const unsigned short *t_bitmap, | 501 | void generate_raw_file(const unsigned short *t_bitmap, |
501 | int t_width, int t_height, int t_depth) | 502 | int t_width, int t_height, int t_depth) |
502 | { | 503 | { |
503 | FILE *f; | 504 | FILE *f; |
@@ -559,14 +560,14 @@ void print_usage(void) | |||
559 | "\t-r Generate RAW file (little-endian)\n" | 560 | "\t-r Generate RAW file (little-endian)\n" |
560 | "\t-f <n> Generate destination format n, default = 0\n" | 561 | "\t-f <n> Generate destination format n, default = 0\n" |
561 | "\t 0 Archos recorder, Ondio, Iriver H1x0 mono\n" | 562 | "\t 0 Archos recorder, Ondio, Iriver H1x0 mono\n" |
562 | "\t 1 Archos player graphics library\n" | 563 | , APPLICATION_NAME); |
564 | printf("\t 1 Archos player graphics library\n" | ||
563 | "\t 2 Iriver H1x0 4-grey\n" | 565 | "\t 2 Iriver H1x0 4-grey\n" |
564 | "\t 3 Canonical 8-bit greyscale\n" | 566 | "\t 3 Canonical 8-bit greyscale\n" |
565 | "\t 4 16-bit packed 5-6-5 RGB (iriver H300)\n" | 567 | "\t 4 16-bit packed 5-6-5 RGB (iriver H300)\n" |
566 | "\t 5 16-bit packed and byte-swapped 5-6-5 RGB (iPod)\n" | 568 | "\t 5 16-bit packed and byte-swapped 5-6-5 RGB (iPod)\n" |
567 | "\t 6 Greyscale iPod 4-grey\n" | 569 | "\t 6 Greyscale iPod 4-grey\n" |
568 | "\t 7 Greyscale X5 remote 4-grey\n" | 570 | "\t 7 Greyscale X5 remote 4-grey\n"); |
569 | , APPLICATION_NAME); | ||
570 | printf("build date: " __DATE__ "\n\n"); | 571 | printf("build date: " __DATE__ "\n\n"); |
571 | } | 572 | } |
572 | 573 | ||
@@ -703,7 +704,7 @@ int main(int argc, char **argv) | |||
703 | &t_width, &t_height, &t_depth)) | 704 | &t_width, &t_height, &t_depth)) |
704 | exit(1); | 705 | exit(1); |
705 | if(raw) | 706 | if(raw) |
706 | generate_raw_file(id, t_bitmap, t_width, t_height, t_depth); | 707 | generate_raw_file(t_bitmap, t_width, t_height, t_depth); |
707 | else | 708 | else |
708 | generate_c_source(id, header_dir, width, height, t_bitmap, | 709 | generate_c_source(id, header_dir, width, height, t_bitmap, |
709 | t_width, t_height, t_depth); | 710 | t_width, t_height, t_depth); |
diff --git a/tools/convbdf.c b/tools/convbdf.c index cd76563003..8e2b4bdcc2 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c | |||
@@ -569,7 +569,7 @@ int bdf_read_bitmaps(FILE *fp, struct font* pf) | |||
569 | 569 | ||
570 | if (padnibbles <= 0) | 570 | if (padnibbles <= 0) |
571 | break; | 571 | break; |
572 | if (padnibbles >= BITMAP_NIBBLES) | 572 | if (padnibbles >= (int)BITMAP_NIBBLES) |
573 | padnibbles = 0; | 573 | padnibbles = 0; |
574 | 574 | ||
575 | value = bdf_hexval((unsigned char *)buf, | 575 | value = bdf_hexval((unsigned char *)buf, |
@@ -610,7 +610,7 @@ int bdf_read_bitmaps(FILE *fp, struct font* pf) | |||
610 | #ifdef ROTATE | 610 | #ifdef ROTATE |
611 | l = 0; | 611 | l = 0; |
612 | for (i=0; i<pf->size; ++i) { | 612 | for (i=0; i<pf->size; ++i) { |
613 | if (pf->offrot[i] != l) { | 613 | if ((int)pf->offrot[i] != l) { |
614 | encodetable = 1; | 614 | encodetable = 1; |
615 | break; | 615 | break; |
616 | } | 616 | } |
@@ -785,9 +785,11 @@ int gen_c_source(struct font* pf, char *path) | |||
785 | { | 785 | { |
786 | FILE *ofp; | 786 | FILE *ofp; |
787 | int i, ofr = 0; | 787 | int i, ofr = 0; |
788 | int did_syncmsg = 0; | ||
789 | time_t t = time(0); | 788 | time_t t = time(0); |
789 | #ifndef ROTATE | ||
790 | int did_syncmsg = 0; | ||
790 | bitmap_t *ofs = pf->bits; | 791 | bitmap_t *ofs = pf->bits; |
792 | #endif | ||
791 | char buf[256]; | 793 | char buf[256]; |
792 | char obuf[256]; | 794 | char obuf[256]; |
793 | char hdr1[] = { | 795 | char hdr1[] = { |
@@ -841,13 +843,13 @@ int gen_c_source(struct font* pf, char *path) | |||
841 | int width = pf->width ? pf->width[i] : pf->maxwidth; | 843 | int width = pf->width ? pf->width[i] : pf->maxwidth; |
842 | int height = pf->height; | 844 | int height = pf->height; |
843 | bitmap_t *bits; | 845 | bitmap_t *bits; |
844 | bitmap_t bitvalue; | 846 | bitmap_t bitvalue=0; |
845 | 847 | ||
846 | /* Skip missing glyphs */ | 848 | /* Skip missing glyphs */ |
847 | if (pf->offset && (pf->offset[i] == (unsigned int)-1)) | 849 | if (pf->offset && (pf->offset[i] == (unsigned int)-1)) |
848 | continue; | 850 | continue; |
849 | 851 | ||
850 | bits = pf->bits + (pf->offset? pf->offset[i]: (pf->height * i)); | 852 | bits = pf->bits + (pf->offset? (int)pf->offset[i]: (pf->height * i)); |
851 | 853 | ||
852 | fprintf(ofp, "\n/* Character %d (0x%02x):\n width %d", | 854 | fprintf(ofp, "\n/* Character %d (0x%02x):\n width %d", |
853 | i+pf->firstchar, i+pf->firstchar, width); | 855 | i+pf->firstchar, i+pf->firstchar, width); |
@@ -885,7 +887,7 @@ int gen_c_source(struct font* pf, char *path) | |||
885 | else | 887 | else |
886 | fprintf(ofp, " */\n"); | 888 | fprintf(ofp, " */\n"); |
887 | 889 | ||
888 | bits = pf->bits + (pf->offset? pf->offset[i]: (pf->height * i)); | 890 | bits = pf->bits + (pf->offset? (int)pf->offset[i]: (pf->height * i)); |
889 | #ifdef ROTATE /* pre-rotated into Rockbox bitmap format */ | 891 | #ifdef ROTATE /* pre-rotated into Rockbox bitmap format */ |
890 | { | 892 | { |
891 | unsigned char bytemap[512]; | 893 | unsigned char bytemap[512]; |
@@ -929,7 +931,7 @@ int gen_c_source(struct font* pf, char *path) | |||
929 | pf->offset[i] = pf->offset[pf->defaultchar - pf->firstchar]; | 931 | pf->offset[i] = pf->offset[pf->defaultchar - pf->firstchar]; |
930 | pf->offrot[i] = pf->offrot[pf->defaultchar - pf->firstchar]; | 932 | pf->offrot[i] = pf->offrot[pf->defaultchar - pf->firstchar]; |
931 | } | 933 | } |
932 | fprintf(ofp, " %ld,\t/* (0x%02x) */\n", | 934 | fprintf(ofp, " %d,\t/* (0x%02x) */\n", |
933 | #ifdef ROTATE | 935 | #ifdef ROTATE |
934 | pf->offrot[i], i+pf->firstchar); | 936 | pf->offrot[i], i+pf->firstchar); |
935 | #else | 937 | #else |
@@ -993,7 +995,7 @@ int gen_h_header(struct font* pf, char *path) | |||
993 | FILE *ofp; | 995 | FILE *ofp; |
994 | time_t t = time(0); | 996 | time_t t = time(0); |
995 | char buf[256]; | 997 | char buf[256]; |
996 | char hdr1[] = { | 998 | char *hdr1 = |
997 | "/* Generated by convbdf on %s. */\n" | 999 | "/* Generated by convbdf on %s. */\n" |
998 | "#ifdef HAVE_LCD_BITMAP\n" | 1000 | "#ifdef HAVE_LCD_BITMAP\n" |
999 | "\n" | 1001 | "\n" |
@@ -1003,7 +1005,8 @@ int gen_h_header(struct font* pf, char *path) | |||
1003 | "#define SYSFONT_WIDTH %d\n" | 1005 | "#define SYSFONT_WIDTH %d\n" |
1004 | "#define SYSFONT_HEIGHT %d\n" | 1006 | "#define SYSFONT_HEIGHT %d\n" |
1005 | "#define SYSFONT_SIZE %d\n" | 1007 | "#define SYSFONT_SIZE %d\n" |
1006 | "#define SYSFONT_ASCENT %d\n" | 1008 | "#define SYSFONT_ASCENT %d\n"; |
1009 | char *hdr2 = | ||
1007 | "#define SYSFONT_DESCENT %d\n" | 1010 | "#define SYSFONT_DESCENT %d\n" |
1008 | "#define SYSFONT_FIRST_CHAR %d\n" | 1011 | "#define SYSFONT_FIRST_CHAR %d\n" |
1009 | "#define SYSFONT_LAST_CHAR %d\n" | 1012 | "#define SYSFONT_LAST_CHAR %d\n" |
@@ -1012,8 +1015,7 @@ int gen_h_header(struct font* pf, char *path) | |||
1012 | "#define SYSFONT_COPYRIGHT %s\n" | 1015 | "#define SYSFONT_COPYRIGHT %s\n" |
1013 | "#define SYSFONT_BITS_SIZE %d\n" | 1016 | "#define SYSFONT_BITS_SIZE %d\n" |
1014 | "\n" | 1017 | "\n" |
1015 | "#endif\n" | 1018 | "#endif\n"; |
1016 | }; | ||
1017 | 1019 | ||
1018 | ofp = fopen(path, "w"); | 1020 | ofp = fopen(path, "w"); |
1019 | if (!ofp) { | 1021 | if (!ofp) { |
@@ -1030,7 +1032,9 @@ int gen_h_header(struct font* pf, char *path) | |||
1030 | pf->maxwidth, | 1032 | pf->maxwidth, |
1031 | pf->height, | 1033 | pf->height, |
1032 | pf->size, | 1034 | pf->size, |
1033 | pf->ascent, | 1035 | pf->ascent); |
1036 | |||
1037 | fprintf(ofp, hdr2, buf, | ||
1034 | pf->descent, | 1038 | pf->descent, |
1035 | pf->firstchar, | 1039 | pf->firstchar, |
1036 | pf->firstchar+pf->size-1, | 1040 | pf->firstchar+pf->size-1, |
@@ -1063,9 +1067,10 @@ static int writeint(FILE *fp, unsigned int l) | |||
1063 | 1067 | ||
1064 | static int writestr(FILE *fp, char *str, int count) | 1068 | static int writestr(FILE *fp, char *str, int count) |
1065 | { | 1069 | { |
1066 | return fwrite(str, 1, count, fp) == count; | 1070 | return (int)fwrite(str, 1, count, fp) == count; |
1067 | } | 1071 | } |
1068 | 1072 | ||
1073 | #ifndef ROTATE | ||
1069 | static int writestrpad(FILE *fp, char *str, int totlen) | 1074 | static int writestrpad(FILE *fp, char *str, int totlen) |
1070 | { | 1075 | { |
1071 | int ret; | 1076 | int ret; |
@@ -1080,6 +1085,7 @@ static int writestrpad(FILE *fp, char *str, int totlen) | |||
1080 | ret = putc(' ', fp); | 1085 | ret = putc(' ', fp); |
1081 | return ret; | 1086 | return ret; |
1082 | } | 1087 | } |
1088 | #endif | ||
1083 | 1089 | ||
1084 | /* generate .fnt format file from in-core font*/ | 1090 | /* generate .fnt format file from in-core font*/ |
1085 | int gen_fnt_file(struct font* pf, char *path) | 1091 | int gen_fnt_file(struct font* pf, char *path) |
@@ -1131,7 +1137,7 @@ int gen_fnt_file(struct font* pf, char *path) | |||
1131 | if (pf->offset && (pf->offset[i] == (unsigned int)-1)) | 1137 | if (pf->offset && (pf->offset[i] == (unsigned int)-1)) |
1132 | continue; | 1138 | continue; |
1133 | 1139 | ||
1134 | bits = pf->bits + (pf->offset? pf->offset[i]: (pf->height * i)); | 1140 | bits = pf->bits + (pf->offset? (int)pf->offset[i]: (pf->height * i)); |
1135 | 1141 | ||
1136 | size = rotleft(bytemap, sizeof(bytemap), bits, width, pf->height); | 1142 | size = rotleft(bytemap, sizeof(bytemap), bits, width, pf->height); |
1137 | writestr(ofp, (char *)bytemap, size); | 1143 | writestr(ofp, (char *)bytemap, size); |
diff --git a/tools/gigabeat.c b/tools/gigabeat.c index 5a8d01125d..761e8c31a0 100644 --- a/tools/gigabeat.c +++ b/tools/gigabeat.c | |||
@@ -33,7 +33,7 @@ static FILE * openinfile( const char * filename ) | |||
33 | exit( -1 ); | 33 | exit( -1 ); |
34 | }; | 34 | }; |
35 | return F; | 35 | return F; |
36 | }; | 36 | } |
37 | 37 | ||
38 | static FILE * openoutfile( const char * filename ) | 38 | static FILE * openoutfile( const char * filename ) |
39 | { | 39 | { |
@@ -45,7 +45,7 @@ static FILE * openoutfile( const char * filename ) | |||
45 | exit( -1 ); | 45 | exit( -1 ); |
46 | }; | 46 | }; |
47 | return F; | 47 | return F; |
48 | }; | 48 | } |
49 | 49 | ||
50 | int gigabeat_code(char *infile, char *outfile) | 50 | int gigabeat_code(char *infile, char *outfile) |
51 | { | 51 | { |
diff --git a/tools/gigabeats.c b/tools/gigabeats.c index 2c5a6286af..66fd885eb2 100644 --- a/tools/gigabeats.c +++ b/tools/gigabeats.c | |||
@@ -36,7 +36,7 @@ static FILE * openinfile( const char * filename ) | |||
36 | exit( -1 ); | 36 | exit( -1 ); |
37 | }; | 37 | }; |
38 | return F; | 38 | return F; |
39 | }; | 39 | } |
40 | 40 | ||
41 | static FILE * openoutfile( const char * filename ) | 41 | static FILE * openoutfile( const char * filename ) |
42 | { | 42 | { |
@@ -48,7 +48,7 @@ static FILE * openoutfile( const char * filename ) | |||
48 | exit( -1 ); | 48 | exit( -1 ); |
49 | }; | 49 | }; |
50 | return F; | 50 | return F; |
51 | }; | 51 | } |
52 | 52 | ||
53 | static uint32_t calc_csum(const unsigned char* pb, int cb) | 53 | static uint32_t calc_csum(const unsigned char* pb, int cb) |
54 | { | 54 | { |
diff --git a/tools/iriver.c b/tools/iriver.c index 240f9e36a2..6730fbd8b2 100644 --- a/tools/iriver.c +++ b/tools/iriver.c | |||
@@ -49,16 +49,16 @@ static int testheader( const unsigned char * const data ) | |||
49 | { | 49 | { |
50 | const unsigned char * const d = data+16; | 50 | const unsigned char * const d = data+16; |
51 | const char * const * m = models; | 51 | const char * const * m = models; |
52 | int index = 0; | 52 | int ind = 0; |
53 | while( *m ) | 53 | while( *m ) |
54 | { | 54 | { |
55 | if( memcmp( header[ index ], d, 16 ) == 0 ) | 55 | if( memcmp( header[ ind ], d, 16 ) == 0 ) |
56 | return index; | 56 | return ind; |
57 | index++; | 57 | ind++; |
58 | m++; | 58 | m++; |
59 | }; | 59 | }; |
60 | return -1; | 60 | return -1; |
61 | }; | 61 | } |
62 | 62 | ||
63 | static void modifyheader( unsigned char * data ) | 63 | static void modifyheader( unsigned char * data ) |
64 | { | 64 | { |
@@ -70,7 +70,7 @@ static void modifyheader( unsigned char * data ) | |||
70 | h = header_modify; | 70 | h = header_modify; |
71 | *data++ ^= *h++; | 71 | *data++ ^= *h++; |
72 | }; | 72 | }; |
73 | }; | 73 | } |
74 | 74 | ||
75 | static FILE * openinfile( const char * filename ) | 75 | static FILE * openinfile( const char * filename ) |
76 | { | 76 | { |
@@ -82,7 +82,7 @@ static FILE * openinfile( const char * filename ) | |||
82 | exit( -1 ); | 82 | exit( -1 ); |
83 | }; | 83 | }; |
84 | return F; | 84 | return F; |
85 | }; | 85 | } |
86 | 86 | ||
87 | static FILE * openoutfile( const char * filename ) | 87 | static FILE * openoutfile( const char * filename ) |
88 | { | 88 | { |
@@ -94,7 +94,7 @@ static FILE * openoutfile( const char * filename ) | |||
94 | exit( -1 ); | 94 | exit( -1 ); |
95 | }; | 95 | }; |
96 | return F; | 96 | return F; |
97 | }; | 97 | } |
98 | 98 | ||
99 | int iriver_decode(char *infile_name, char *outfile_name, BOOL modify, | 99 | int iriver_decode(char *infile_name, char *outfile_name, BOOL modify, |
100 | enum striptype stripmode ) | 100 | enum striptype stripmode ) |
@@ -256,7 +256,7 @@ int iriver_decode(char *infile_name, char *outfile_name, BOOL modify, | |||
256 | }; | 256 | }; |
257 | 257 | ||
258 | return 0; | 258 | return 0; |
259 | }; | 259 | } |
260 | 260 | ||
261 | int iriver_encode(char *infile_name, char *outfile_name, BOOL modify ) | 261 | int iriver_encode(char *infile_name, char *outfile_name, BOOL modify ) |
262 | { | 262 | { |
@@ -376,4 +376,4 @@ int iriver_encode(char *infile_name, char *outfile_name, BOOL modify ) | |||
376 | fprintf( stderr, "File encoded successfully and checksum table built!\n" ); | 376 | fprintf( stderr, "File encoded successfully and checksum table built!\n" ); |
377 | 377 | ||
378 | return 0; | 378 | return 0; |
379 | }; | 379 | } |
diff --git a/tools/mktccboot.c b/tools/mktccboot.c index 90b85e8335..fcfd80a676 100644 --- a/tools/mktccboot.c +++ b/tools/mktccboot.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include <unistd.h> | ||
24 | #include <sys/types.h> | 25 | #include <sys/types.h> |
25 | #include <sys/stat.h> | 26 | #include <sys/stat.h> |
26 | #include <fcntl.h> | 27 | #include <fcntl.h> |
@@ -94,7 +95,7 @@ int main(int argc, char *argv[]) | |||
94 | { | 95 | { |
95 | char *infile, *bootfile, *outfile; | 96 | char *infile, *bootfile, *outfile; |
96 | int fdin, fdboot,fdout; | 97 | int fdin, fdboot,fdout; |
97 | int i,n; | 98 | int n; |
98 | int inlength,bootlength; | 99 | int inlength,bootlength; |
99 | uint32_t ldr; | 100 | uint32_t ldr; |
100 | unsigned char* image; | 101 | unsigned char* image; |
diff --git a/tools/scramble.c b/tools/scramble.c index 7efade3419..130ca89ffb 100644 --- a/tools/scramble.c +++ b/tools/scramble.c | |||
@@ -99,8 +99,8 @@ void usage(void) | |||
99 | "\t-iaudiox5 iAudio X5 format\n" | 99 | "\t-iaudiox5 iAudio X5 format\n" |
100 | "\t-iaudiox5v iAudio X5V format\n" | 100 | "\t-iaudiox5v iAudio X5V format\n" |
101 | "\t-iaudiom5 iAudio M5 format\n" | 101 | "\t-iaudiom5 iAudio M5 format\n" |
102 | "\t-iaudiom3 iAudio M3 format\n" | 102 | "\t-iaudiom3 iAudio M3 format\n"); |
103 | "\t-ipod3g ipod firmware partition format (3rd Gen)\n" | 103 | printf("\t-ipod3g ipod firmware partition format (3rd Gen)\n" |
104 | "\t-ipod4g ipod firmware partition format (4th Gen, Mini, Nano, Photo/Color)\n" | 104 | "\t-ipod4g ipod firmware partition format (4th Gen, Mini, Nano, Photo/Color)\n" |
105 | "\t-ipod5g ipod firmware partition format (5th Gen - aka Video)\n" | 105 | "\t-ipod5g ipod firmware partition format (5th Gen - aka Video)\n" |
106 | "\t-creative=X Creative firmware structure format\n" | 106 | "\t-creative=X Creative firmware structure format\n" |
@@ -109,16 +109,16 @@ void usage(void) | |||
109 | "\t-mi4v2 PortalPlayer .mi4 format (revision 010201)\n" | 109 | "\t-mi4v2 PortalPlayer .mi4 format (revision 010201)\n" |
110 | "\t-mi4v3 PortalPlayer .mi4 format (revision 010301)\n" | 110 | "\t-mi4v3 PortalPlayer .mi4 format (revision 010301)\n" |
111 | "\t-mi4r Sandisk Rhapsody .mi4 format\n" | 111 | "\t-mi4r Sandisk Rhapsody .mi4 format\n" |
112 | "\t All mi4 options take two optional arguments:\n" | 112 | "\t All mi4 options take two optional arguments:\n"); |
113 | "\t -model=XXXX where XXXX is the model id string\n" | 113 | printf("\t -model=XXXX where XXXX is the model id string\n" |
114 | "\t -type=XXXX where XXXX is a string indicating the \n" | 114 | "\t -type=XXXX where XXXX is a string indicating the \n" |
115 | "\t type of binary, eg. RBOS, RBBL\n" | 115 | "\t type of binary, eg. RBOS, RBBL\n" |
116 | "\t-tcc=X Telechips generic firmware format (X values: sum, crc)\n" | 116 | "\t-tcc=X Telechips generic firmware format (X values: sum, crc)\n" |
117 | "\t-add=X Rockbox generic \"add-up\" checksum format\n" | 117 | "\t-add=X Rockbox generic \"add-up\" checksum format\n" |
118 | "\t (X values: h100, h120, h140, h300, ipco, nano, ipvd, mn2g\n" | 118 | "\t (X values: h100, h120, h140, h300, ipco, nano, ipvd, mn2g\n" |
119 | "\t ip3g, ip4g, mini, iax5, iam5, iam3, h10, h10_5gb,\n" | 119 | "\t ip3g, ip4g, mini, iax5, iam5, iam3, h10, h10_5gb,\n" |
120 | "\t tpj2, c200, e200, giga, gigs, m100, m500, d2)\n" | 120 | "\t tpj2, c200, e200, giga, gigs, m100, m500, d2)\n"); |
121 | "\nNo option results in Archos standard player/recorder format.\n"); | 121 | printf("\nNo option results in Archos standard player/recorder format.\n"); |
122 | 122 | ||
123 | exit(1); | 123 | exit(1); |
124 | } | 124 | } |