Skip to content
Snippets Groups Projects
  • Sean Bright's avatar
    f5b67871
    cleanup: Fix fread() and fwrite() error handling · f5b67871
    Sean Bright authored
    Cleaned up some of the incorrect uses of fread() and fwrite(), mostly in
    the format modules. Neither of these functions will ever return a value
    less than 0, which we were checking for in some cases.
    
    I've introduced a fair amount of duplication in the format modules, but
    I plan to change how format modules work internally in a subsequent
    patch set, so this is simply a stop-gap.
    
    Change-Id: I8ca1cd47c20b2c0b72088bd13b9046f6977aa872
    f5b67871
    History
    cleanup: Fix fread() and fwrite() error handling
    Sean Bright authored
    Cleaned up some of the incorrect uses of fread() and fwrite(), mostly in
    the format modules. Neither of these functions will ever return a value
    less than 0, which we were checking for in some cases.
    
    I've introduced a fair amount of duplication in the format modules, but
    I plan to change how format modules work internally in a subsequent
    patch set, so this is simply a stop-gap.
    
    Change-Id: I8ca1cd47c20b2c0b72088bd13b9046f6977aa872