Changeset 92fd52d7 in mainline for uspace/app/bdsh/cmds/mod_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/mod_cmds.c

    ra2c58f6 r92fd52d7  
    6565
    6666        for (mod = modules; mod->name != NULL; mod++, i++) {
    67                 if (!strcmp(mod->name, command))
     67                if (!str_cmp(mod->name, command))
    6868                        return i;
    6969        }
     
    8282
    8383        for(i=0; mod_aliases[i] != NULL; i+=2) {
    84                 if (!strcmp(mod_aliases[i], command))
     84                if (!str_cmp(mod_aliases[i], command))
    8585                        return 1;
    8686        }
     
    9898
    9999        for(i=0; mod_aliases[i] != NULL; i++) {
    100                 if (!strcmp(mod_aliases[i], command))
     100                if (!str_cmp(mod_aliases[i], command))
    101101                        return (char *)mod_aliases[++i];
    102102                i++;
Note: See TracChangeset for help on using the changeset viewer.