Changeset a000878c in mainline for uspace/srv/taskmon/taskmon.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
  • uspace/srv/taskmon/taskmon.c

    ra634485 ra000878c  
    4949static void fault_event(ipc_callid_t callid, ipc_call_t *call)
    5050{
    51         char *argv[6];
    52         char *fname;
     51        const char *argv[6];
     52        const char *fname;
    5353        char *dump_fname;
    5454        char *s_taskid;
    55         char **s;
     55        const char **s;
    5656
    5757        task_id_t taskid;
     
    8989
    9090        printf(NAME ": Executing");
    91         s = argv;
     91       
     92        s = argv;
    9293        while (*s != NULL) {
    9394                printf(" %s", *s);
Note: See TracChangeset for help on using the changeset viewer.