Changeset 4cc0c9ee in mainline for uspace/app/bdsh/input.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/input.c

    rfc11b8a r4cc0c9ee  
    5858                return CL_EFAIL;
    5959
    60         tmp = cli_strdup(usr->line);
     60        tmp = strdup(usr->line);
    6161
    62         cmd[n] = cli_strtok(tmp, " ");
     62        cmd[n] = strtok(tmp, " ");
    6363        while (cmd[n] && n < WORD_MAX) {
    64                 cmd[++n] = cli_strtok(NULL, " ");
     64                cmd[++n] = strtok(NULL, " ");
    6565        }
    6666
     
    139139        if (len == 0 || line[0] == '\n')
    140140                return;
    141         usr->line = cli_strdup(line);
     141        usr->line = strdup(line);
    142142
    143143        return;
Note: See TracChangeset for help on using the changeset viewer.