FreeCalypso > hg > fc-magnetite
comparison helpers/mokosrec2bin.c @ 693:c6deddb5e91d
helpers/mokosrec2bin.c: sync with master version in freecalypso-tools
The only diff is that the fill byte now defaults to 0xFF.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 05:05:01 +0000 |
parents | a490b0466fed |
children |
comparison
equal
deleted
inserted
replaced
692:555cdc5fda0d | 693:c6deddb5e91d |
---|---|
126 if (i >= 0) | 126 if (i >= 0) |
127 fillbyte = i; | 127 fillbyte = i; |
128 else | 128 else |
129 goto usage; | 129 goto usage; |
130 } else | 130 } else |
131 fillbyte = 0; | 131 fillbyte = 0xFF; |
132 | 132 |
133 state = 0; | 133 state = 0; |
134 for (lineno = 1; ; lineno++) { | 134 for (lineno = 1; ; lineno++) { |
135 if (!fgets(srecbuf, sizeof srecbuf, inf)) { | 135 if (!fgets(srecbuf, sizeof srecbuf, inf)) { |
136 fprintf(stderr, "%s: premature EOF\n", infname); | 136 fprintf(stderr, "%s: premature EOF\n", infname); |