Ignore:
File:
1 edited

Legend:

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

    r8e3498b rb7fd2a0  
    7070}
    7171
    72 static int cmp_files(const char *fn0, const char *fn1)
     72static errno_t cmp_files(const char *fn0, const char *fn1)
    7373{
    74         int rc = EOK;
     74        errno_t rc = EOK;
    7575        const char *fn[2] = {fn0, fn1};
    7676        int fd[2] = {-1, -1};
     
    8080
    8181        for (int i = 0; i < 2; i++) {
    82                 fd[i] = vfs_lookup_open(fn[i], WALK_REGULAR, MODE_READ);
    83                 if (fd[i] < 0) {
    84                         rc = fd[i];
     82                rc = vfs_lookup_open(fn[i], WALK_REGULAR, MODE_READ, &(fd[i]));
     83                if (rc != EOK) {
    8584                        printf("Unable to open %s\n", fn[i]);
    8685                        goto end;
     
    102101                    memcmp(buffer[0], buffer[1], offset[0]) != 0) {
    103102                        printf("Return 1\n");
    104                         rc = 1;
     103                        rc = EBUSY;
    105104                        goto end;
    106105                }
     
    118117int cmd_cmp(char **argv)
    119118{
    120         int rc;
     119        errno_t rc;
    121120        unsigned int argc;
    122121        int c, opt_ind;
Note: See TracChangeset for help on using the changeset viewer.