Changeset 3b47db6 in mainline for uspace/app/mkbd/main.c


Ignore:
Timestamp:
2018-01-04T20:50:53Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
58e4d85
Parents:
c81d4f1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:53)
Message:

(optional) Remove EXIT_RC().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkbd/main.c

    rc81d4f1 r3b47db6  
    222222                printf("Device not found or not of USB kind: %s.\n",
    223223                    str_error(rc));
    224                 return EXIT_RC(rc);
     224                return rc;
    225225        }
    226226       
     
    229229                printf(NAME ": failed to connect to the device (handle %"
    230230                       PRIun "): %s.\n", dev_handle, str_error(errno));
    231                 return EXIT_RC(errno);
     231                return errno;
    232232        }
    233233       
     
    239239                printf(NAME ": failed to get path (handle %"
    240240                       PRIun "): %s.\n", dev_handle, str_error(errno));
    241                 return EXIT_RC(ENOMEM);
     241                return ENOMEM;
    242242        }
    243243       
     
    250250                printf("Failed to initialize report parser: %s\n",
    251251                    str_error(rc));
    252                 return EXIT_RC(rc);
     252                return rc;
    253253        }
    254254       
     
    259259        if (rc != EOK) {
    260260                printf("Failed to get event length: %s.\n", str_error(rc));
    261                 return EXIT_RC(rc);
     261                return rc;
    262262        }
    263263       
     
    266266                printf("Out of memory.\n");
    267267                // TODO: hangup phone?
    268                 return EXIT_RC(ENOMEM);
     268                return ENOMEM;
    269269        }
    270270       
Note: See TracChangeset for help on using the changeset viewer.