VirtualBox

Changeset 1786

Show
Ignore:
Timestamp:
03/29/07 00:27:22 (2 years ago)
Author:
vboxsync
Message:

size_t warning.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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    } 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy