Changeset 1786 in vbox for trunk/src/bldprogs
- Timestamp:
- Mar 28, 2007 10:27:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/bin2c.c
r30 r1786 3 3 * PC-BIOS - Binary 2 C Structure Converter. 4 4 */ 5 5 6 6 /* 7 7 * Copyright (C) 2006 InnoTek Systemberatung GmbH … … 65 65 int fExport = 0; 66 66 unsigned char abLine[16]; 67 unsigned intoff;67 size_t off; 68 68 size_t cbRead; 69 69 size_t cbBin; … … 174 174 if (fAscii) 175 175 { 176 fprintf(pFileOut, " /* 0x%08 x: ",off);176 fprintf(pFileOut, " /* 0x%08lx: ", (long)off); 177 177 for (i = 0; i < cbRead; i++) 178 178 fprintf(pFileOut, "%c", isprint(abLine[i]) ? abLine[i] : '.'); … … 194 194 if (off != cbBin) 195 195 { 196 fprintf(stderr, "%s: read error off=% d cbBin=%ld\n", argv[0],off, (long)cbBin);196 fprintf(stderr, "%s: read error off=%ld cbBin=%ld\n", argv[0], (long)off, (long)cbBin); 197 197 goto error; 198 198 }
Note:
See TracChangeset
for help on using the changeset viewer.