- for (range = rangeArray; range->length != 0; range++) {
- printf("range: type %d, base 0x%x, length 0x%x\n",
- range->type, (unsigned int)range->base, (unsigned int)range->length); getc();
-
+ int i;
+ printf("%d total ranges\n", count);getc();
+ for (i=0, range = rangeArray; i<count; i++, range++) {
+ printf("range: type %d, base 0x%x, length 0x%x\n",
+ range->type, (unsigned int)range->base, (unsigned int)range->length); getc();