Changeset 92fd52d7 in mainline for uspace/app/bdsh/cmds/builtin_cmds.c


Ignore:
Timestamp:
2009-04-09T21:16:50Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7afb4a5
Parents:
a2c58f6
Message:

Nuke strcpy() and strcmp().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/builtin_cmds.c

    ra2c58f6 r92fd52d7  
    5050
    5151        for (cmd = builtins; cmd->name != NULL; cmd++, i++) {
    52                 if (!strcmp(cmd->name, command))
     52                if (!str_cmp(cmd->name, command))
    5353                        return i;
    5454        }
     
    6565
    6666        for(i=0; builtin_aliases[i] != NULL; i+=2) {
    67                 if (!strcmp(builtin_aliases[i], command))
     67                if (!str_cmp(builtin_aliases[i], command))
    6868                        return 1;
    6969        }
     
    8080
    8181        for(i=0; builtin_aliases[i] != NULL; i++) {
    82                 if (!strcmp(builtin_aliases[i], command))
     82                if (!str_cmp(builtin_aliases[i], command))
    8383                        return (char *)builtin_aliases[++i];
    8484                i++;
Note: See TracChangeset for help on using the changeset viewer.