Blast those warnings!

This commit is contained in:
hooper114 2008-10-06 19:17:07 +00:00
parent 05d77b5fa3
commit 625d09f621

View File

@ -36,37 +36,37 @@ static struct ecc200matrix_s {
int bytes; int bytes;
int datablock, rsblock; int datablock, rsblock;
} ecc200matrix[] = { } ecc200matrix[] = {
10, 10, 10, 10, 3, 3, 5, // {10, 10, 10, 10, 3, 3, 5},
12, 12, 12, 12, 5, 5, 7, // {12, 12, 12, 12, 5, 5, 7},
8, 18, 8, 18, 5, 5, 7, // {8, 18, 8, 18, 5, 5, 7},
14, 14, 14, 14, 8, 8, 10, // {14, 14, 14, 14, 8, 8, 10},
8, 32, 8, 16, 10, 10, 11, // {8, 32, 8, 16, 10, 10, 11},
16, 16, 16, 16, 12, 12, 12, // {16, 16, 16, 16, 12, 12, 12},
12, 26, 12, 26, 16, 16, 14, // {12, 26, 12, 26, 16, 16, 14},
18, 18, 18, 18, 18, 18, 14, // {18, 18, 18, 18, 18, 18, 14},
20, 20, 20, 20, 22, 22, 18, // {20, 20, 20, 20, 22, 22, 18},
12, 36, 12, 18, 22, 22, 18, // {12, 36, 12, 18, 22, 22, 18},
22, 22, 22, 22, 30, 30, 20, // {22, 22, 22, 22, 30, 30, 20},
16, 36, 16, 18, 32, 32, 24, // {16, 36, 16, 18, 32, 32, 24},
24, 24, 24, 24, 36, 36, 24, // {24, 24, 24, 24, 36, 36, 24},
26, 26, 26, 26, 44, 44, 28, // {26, 26, 26, 26, 44, 44, 28},
16, 48, 16, 24, 49, 49, 28, // {16, 48, 16, 24, 49, 49, 28},
32, 32, 16, 16, 62, 62, 36, // {32, 32, 16, 16, 62, 62, 36},
36, 36, 18, 18, 86, 86, 42, // {36, 36, 18, 18, 86, 86, 42},
40, 40, 20, 20, 114, 114, 48, // {40, 40, 20, 20, 114, 114, 48},
44, 44, 22, 22, 144, 144, 56, // {44, 44, 22, 22, 144, 144, 56},
48, 48, 24, 24, 174, 174, 68, // {48, 48, 24, 24, 174, 174, 68},
52, 52, 26, 26, 204, 102, 42, // {52, 52, 26, 26, 204, 102, 42},
64, 64, 16, 16, 280, 140, 56, // {64, 64, 16, 16, 280, 140, 56},
72, 72, 18, 18, 368, 92, 36, // {72, 72, 18, 18, 368, 92, 36},
80, 80, 20, 20, 456, 114, 48, // {80, 80, 20, 20, 456, 114, 48},
88, 88, 22, 22, 576, 144, 56, // {88, 88, 22, 22, 576, 144, 56},
96, 96, 24, 24, 696, 174, 68, // {96, 96, 24, 24, 696, 174, 68},
104, 104, 26, 26, 816, 136, 56, // {104, 104, 26, 26, 816, 136, 56},
120, 120, 20, 20, 1050, 175, 68, // {120, 120, 20, 20, 1050, 175, 68},
132, 132, 22, 22, 1304, 163, 62, // {132, 132, 22, 22, 1304, 163, 62},
144, 144, 24, 24, 1558, 156, 62, // 156*4+155*2 {144, 144, 24, 24, 1558, 156, 62}, /* 156*4+155*2 */
0 // terminate {0}
}; };
// simple checked response malloc // simple checked response malloc
@ -442,12 +442,12 @@ enum {
}; };
unsigned char switchcost[E_MAX][E_MAX] = { unsigned char switchcost[E_MAX][E_MAX] = {
0, 1, 1, 1, 1, 2, // From E_ASCII {0, 1, 1, 1, 1, 2}, // From E_ASCII
1, 0, 2, 2, 2, 3, // From E_C40 {1, 0, 2, 2, 2, 3}, // From E_C40
1, 2, 0, 2, 2, 3, // From E_TEXT {1, 2, 0, 2, 2, 3}, // From E_TEXT
1, 2, 2, 0, 2, 3, // From E_X12 {1, 2, 2, 0, 2, 3}, // From E_X12
1, 2, 2, 2, 0, 3, // From E_EDIFACT {1, 2, 2, 2, 0, 3}, // From E_EDIFACT
0, 1, 1, 1, 1, 0, // From E_BINARY {0, 1, 1, 1, 1, 0}, // From E_BINARY
}; };
/* /*