Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.c

    r8bfb163 r132ab5d1  
    9494
    9595        int ret = 0;
     96        int rc;
    9697
    9798        if (!create_parents) {
    98                 ret = vfs_link_path(path, KIND_DIRECTORY, NULL);
    99                 if (ret != EOK) {
     99                rc = vfs_link_path(path, KIND_DIRECTORY, NULL);
     100                if (rc != EOK) {
    100101                        cli_error(CL_EFAIL, "%s: could not create %s (%s)",
    101                             cmdname, path, str_error(ret));
     102                            cmdname, path, str_error(rc));
    102103                        ret = 1;
    103104                }
     
    135136                        path[prev_off] = 0;
    136137
    137                         ret = vfs_link_path(path, KIND_DIRECTORY, NULL);
    138                         if (ret != EOK && ret != EEXIST) {
     138                        rc = vfs_link_path(path, KIND_DIRECTORY, NULL);
     139                        if (rc != EOK && rc != EEXIST) {
    139140                                cli_error(CL_EFAIL, "%s: could not create %s (%s)",
    140                                     cmdname, path, str_error(ret));
     141                                    cmdname, path, str_error(rc));
    141142                                ret = 1;
    142143                                goto leave;
     
    146147                }
    147148                /* Create the final directory. */
    148                 ret = vfs_link_path(path, KIND_DIRECTORY, NULL);
    149                 if (ret != EOK) {
     149                rc = vfs_link_path(path, KIND_DIRECTORY, NULL);
     150                if (rc != EOK) {
    150151                        cli_error(CL_EFAIL, "%s: could not create %s (%s)",
    151                             cmdname, path, str_error(ret));
     152                            cmdname, path, str_error(rc));
    152153                        ret = 1;
    153154                }
Note: See TracChangeset for help on using the changeset viewer.