Ignore:
Timestamp:
2010-02-25T19:11:25Z (14 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/interrupt/interrupt.c

    ra634485 ra000878c  
    114114
    115115/** Terminate thread and task if exception came from userspace. */
    116 void fault_if_from_uspace(istate_t *istate, char *fmt, ...)
     116void fault_if_from_uspace(istate_t *istate, const char *fmt, ...)
    117117{
    118118        task_t *task = TASK;
     
    162162#if (IVT_ITEMS > 0)
    163163        unsigned int i;
    164         char *symbol;
    165164
    166165        spinlock_lock(&exctbl_lock);
     
    177176       
    178177        for (i = 0; i < IVT_ITEMS; i++) {
    179                 symbol = symtab_fmt_name_lookup((unative_t) exc_table[i].f);
     178                const char *symbol = symtab_fmt_name_lookup((unative_t) exc_table[i].f);
    180179
    181180#ifdef __32_BITS__
Note: See TracChangeset for help on using the changeset viewer.