Changeset a000878c in mainline for kernel/generic/src/lib/elf.c


Ignore:
Timestamp:
2010-02-25T19:11:25Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
958de16
Parents:
a634485
Message:

make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/elf.c

    ra634485 ra000878c  
    4848#include <arch.h>
    4949
    50 static char *error_codes[] = {
     50static const char *error_codes[] = {
    5151        "no error",
    5252        "invalid image",
     
    137137 * @return NULL terminated description of error.
    138138 */
    139 char *elf_error(unsigned int rc)
     139const char *elf_error(unsigned int rc)
    140140{
    141141        ASSERT(rc < sizeof(error_codes) / sizeof(char *));
Note: See TracChangeset for help on using the changeset viewer.