summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
Diffstat (limited to 'src/export')
-rw-r--r--src/export/split_version_2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/export/split_version_2.c b/src/export/split_version_2.c
index 9f04412..2b7a79f 100644
--- a/src/export/split_version_2.c
+++ b/src/export/split_version_2.c
@@ -129,7 +129,7 @@ static void act_on_record( uint8_t * end, uint16_t base ) {
129 uint16_t num_dwords = rec[0]; 129 uint16_t num_dwords = rec[0];
130 uint16_t flagbytes = rec[1]; 130 uint16_t flagbytes = rec[1];
131 uint32_t flags = 0; 131 uint32_t flags = 0;
132 int bold = 0, i, j; 132 int bold = 0, i;
133 133
134 for (i=0; i<flagbytes; ++i) flags = (flags<<8) | *--end; 134 for (i=0; i<flagbytes; ++i) flags = (flags<<8) | *--end;
135 135
@@ -137,6 +137,7 @@ static void act_on_record( uint8_t * end, uint16_t base ) {
137 putchar( 27 ) ; putchar( '[' ); putchar( '3' ); 137 putchar( 27 ) ; putchar( '[' ); putchar( '3' );
138 putchar( ( flags & test_me ) ? '1' : '2' ); 138 putchar( ( flags & test_me ) ? '1' : '2' );
139 putchar( 'm' ); */ 139 putchar( 'm' ); */
140 (void)bold;
140 141
141 printf( "-------- %03d: %06X\n", num_dwords, flags ); 142 printf( "-------- %03d: %06X\n", num_dwords, flags );
142 for (i = 0; i < num_dwords; i++ ) { 143 for (i = 0; i < num_dwords; i++ ) {
@@ -160,6 +161,10 @@ int main( int args, char **argv ) {
160 MAP data, index; 161 MAP data, index;
161 uint32_t * indoff; 162 uint32_t * indoff;
162 163
164 if( args != 3 ) {
165 fprintf( stderr, "Syntax: %s <dumpfile> <indexfile>\n", argv[0] );
166 exit(1);
167 }
163 data = map_file( argv[1], 1 ); 168 data = map_file( argv[1], 1 );
164 index = map_file( argv[2], 1 ); 169 index = map_file( argv[2], 1 );
165 170