VirtualBox

Changeset 1786 in vbox for trunk/src/bldprogs


Ignore:
Timestamp:
Mar 28, 2007 10:27:22 PM (18 years ago)
Author:
vboxsync
Message:

size_t warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/bin2c.c

    r30 r1786  
    33 * PC-BIOS - Binary 2 C Structure Converter.
    44 */
    5  
     5
    66/*
    77 * Copyright (C) 2006 InnoTek Systemberatung GmbH
     
    6565    int           fExport = 0;
    6666    unsigned char abLine[16];
    67     unsigned int  off;
     67    size_t        off;
    6868    size_t        cbRead;
    6969    size_t        cbBin;
     
    174174        if (fAscii)
    175175        {
    176             fprintf(pFileOut, " /* 0x%08x: ", off);
     176            fprintf(pFileOut, " /* 0x%08lx: ", (long)off);
    177177            for (i = 0; i < cbRead; i++)
    178178                fprintf(pFileOut, "%c", isprint(abLine[i]) ? abLine[i] : '.');
     
    194194    if (off != cbBin)
    195195    {
    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);
    197197        goto error;
    198198    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette