VirtualBox

Changeset 63497 in vbox


Ignore:
Timestamp:
Aug 15, 2016 5:59:56 PM (8 years ago)
Author:
vboxsync
Message:

shadow warning on Ubuntu 12.04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/ipxe/src/util/zbin.c

    r47928 r63497  
    7474static int read_file ( const char *filename, void **buf, size_t *len ) {
    7575        FILE *file;
    76         struct stat stat;
     76        struct stat sstat;
    7777
    7878        file = fopen ( filename, "r" );
     
    8383        }
    8484
    85         if ( fstat ( fileno ( file ), &stat ) < 0 ) {
     85        if ( fstat ( fileno ( file ), &sstat ) < 0 ) {
    8686                fprintf ( stderr, "Could not stat %s: %s\n", filename,
    8787                          strerror ( errno ) );
     
    8989        }
    9090
    91         *len = stat.st_size;
     91        *len = sstat.st_size;
    9292        *buf = malloc ( *len );
    9393        if ( ! *buf ) {
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