Ignore:
Timestamp:
Aug 30, 2018, 6:39:41 PM (3 years ago)
Author:
viala@…
Message:

[boot] Add const qualifier where it's possible.

Fix some gcc warning of "const qualifier discarded" warning.
Because litterals string are of type 'const char *'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boot/tsar_mips32/boot_fat32.h

    r474 r521  
    361361 * @ returns 0 on success, -1 on error.                                     *
    362362 ****************************************************************************/
    363 int boot_fat32_load( char*    pathname,
    364                      uint32_t buff_addr,
    365                      uint32_t buff_size );
     363int boot_fat32_load( const char * pathname,
     364                     uint32_t     buff_addr,
     365                     uint32_t     buff_size );
    366366
    367367#endif // BOOT_FAT32_H
Note: See TracChangeset for help on using the changeset viewer.