Changeset 05b59393 in mainline for uspace/app/bdsh/cmds/mod_cmds.c


Ignore:
Timestamp:
2017-10-04T18:02:14Z (7 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9e88da
Parents:
0b2d369
Message:

Fix a couple of benign clang warnings.
No change in semantics.

File:
1 edited

Legend:

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

    r0b2d369 r05b59393  
    9696                return (char *)NULL;
    9797
    98         for(i=0; mod_aliases[i] != NULL; i++) {
     98        for(i=0; mod_aliases[i] != NULL; i+=2) {
    9999                if (!str_cmp(mod_aliases[i], command))
    100                         return (char *)mod_aliases[++i];
    101                 i++;
     100                        return (char *)mod_aliases[i+1];
    102101        }
    103102
Note: See TracChangeset for help on using the changeset viewer.