Changeset 98b1d30 in mainline


Ignore:
Timestamp:
2018-02-03T10:52:17Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c69377
Parents:
be01eb3
Message:

tmon: refactor to errno_t

Location:
uspace/app/tmon
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/list.c

    rbe01eb3 r98b1d30  
    4949static void print_list_item(service_id_t svc)
    5050{
    51         int rc;
     51        errno_t rc;
    5252        devman_handle_t diag_handle = 0;
    5353
  • uspace/app/tmon/resolve.h

    rbe01eb3 r98b1d30  
    3939#include <devman.h>
    4040
    41 int tmon_resolve_default(devman_handle_t *);
    42 int tmon_resolve_named(const char *, devman_handle_t *);
     41errno_t tmon_resolve_default(devman_handle_t *);
     42errno_t tmon_resolve_named(const char *, devman_handle_t *);
    4343
    4444#endif /* TMON_RESOLVE_H_ */
  • uspace/app/tmon/tests.c

    rbe01eb3 r98b1d30  
    6666 * @return EOK if successful (in such case caller becomes the owner of `params`).
    6767 */
    68 static int read_params(int argc, char *argv[], void **params)
    69 {
    70         int rc;
     68static errno_t read_params(int argc, char *argv[], void **params)
     69{
     70        errno_t rc;
    7171        usbdiag_test_params_t *p = (usbdiag_test_params_t *) malloc(sizeof(usbdiag_test_params_t));
    7272        if (!p)
     
    182182
    183183        usbdiag_test_results_t results;
    184         int rc = usbdiag_test_in(exch, params, &results);
     184        errno_t rc = usbdiag_test_in(exch, params, &results);
    185185        if (rc != EOK) {
    186186                puts("failed\n");
     
    207207
    208208        usbdiag_test_results_t results;
    209         int rc = usbdiag_test_out(exch, params, &results);
     209        errno_t rc = usbdiag_test_out(exch, params, &results);
    210210        if (rc) {
    211211                puts("failed\n");
  • uspace/app/tmon/tf.c

    rbe01eb3 r98b1d30  
    6767        }
    6868
    69         int rc, ec;
     69        errno_t rc;
     70        int ec;
    7071        char path[MAX_PATH_LENGTH];
    7172        if ((rc = devman_fun_get_path(fun, path, sizeof(path)))) {
  • uspace/app/tmon/tf.h

    rbe01eb3 r98b1d30  
    4242/** Operations to implement by all tests. */
    4343typedef struct tmon_test_ops {
    44         int (*pre_run)(void *);
    45         int (*run)(async_exch_t *, const void *);
    46         int (*read_params)(int, char **, void **);
     44        errno_t (*pre_run)(void *);
     45        errno_t (*run)(async_exch_t *, const void *);
     46        errno_t (*read_params)(int, char **, void **);
    4747} tmon_test_ops_t;
    4848
Note: See TracChangeset for help on using the changeset viewer.