Ignore:
Timestamp:
Aug 30, 2018, 6:39:41 PM (6 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_tty_driver.h

    r457 r521  
    7070 * @ returns 0 on success, -1 on error.     
    7171 ****************************************************************************/
    72 int boot_tty_write( char    * buf,
    73                     uint32_t  nbytes );
     72int boot_tty_write( const char * buf,
     73                    uint32_t     nbytes );
    7474
    7575#endif // BOOT_TTY_DRIVER_H
Note: See TracChangeset for help on using the changeset viewer.