Changeset a000878c in mainline for uspace/app/redir/redir.c


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
  • uspace/app/redir/redir.c

    ra634485 ra000878c  
    7272static task_id_t spawn(int argc, char *argv[])
    7373{
    74         char **args = (char **) calloc(argc + 1, sizeof(char *));
     74        const char **args = (const char **) calloc(argc + 1, sizeof(char *));
    7575        if (!args) {
    7676                printf("No memory available\n");
Note: See TracChangeset for help on using the changeset viewer.