Changeset 4cc0c9ee in mainline for uspace/app/bdsh/exec.c


Ignore:
Timestamp:
2009-01-22T14:22:12Z (15 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf226890
Parents:
fc11b8a
Message:

Get rid of cli_strdup(), cli_strtok(), cli_strtok_r(), just use facilities in libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/exec.c

    rfc11b8a r4cc0c9ee  
    8181        }
    8282
    83         path_tok = cli_strdup(PATH);
     83        path_tok = strdup(PATH);
    8484
    8585        /* Extract the PATH env to a path[] array */
    86         path[n] = cli_strtok(path_tok, PATH_DELIM);
     86        path[n] = strtok(path_tok, PATH_DELIM);
    8787        while (NULL != path[n]) {
    8888                if ((strlen(path[n]) + x ) > PATH_MAX) {
     
    9292                        break;
    9393                }
    94                 path[++n] = cli_strtok(NULL, PATH_DELIM);
     94                path[++n] = strtok(NULL, PATH_DELIM);
    9595        }
    9696
     
    115115        char *tmp;
    116116
    117         tmp = cli_strdup(find_command(cmd));
     117        tmp = strdup(find_command(cmd));
    118118        free(found);
    119119
Note: See TracChangeset for help on using the changeset viewer.