Changeset 5a6cc679 in mainline for uspace/app/bnchmark/bnchmark.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bnchmark/bnchmark.c

    r132ab5d1 r5a6cc679  
    5454#define MBYTE (1024*1024)
    5555
    56 typedef int(*measure_func_t)(void *);
     56typedef errno_t(*measure_func_t)(void *);
    5757typedef unsigned long umseconds_t; /* milliseconds */
    5858
    5959static void syntax_print(void);
    6060
    61 static int measure(measure_func_t fn, void* data, umseconds_t *result)
     61static errno_t measure(measure_func_t fn, void* data, umseconds_t *result)
    6262{
    6363        struct timeval start_time;
    6464        gettimeofday(&start_time, NULL);
    6565       
    66         int rc = fn(data);
     66        errno_t rc = fn(data);
    6767        if (rc != EOK) {
    6868                fprintf(stderr, "measured function failed\n");
     
    7979}
    8080
    81 static int sequential_read_file(void *data)
     81static errno_t sequential_read_file(void *data)
    8282{
    8383        char *path = (char *) data;
     
    109109}
    110110
    111 static int sequential_read_dir(void *data)
     111static errno_t sequential_read_dir(void *data)
    112112{
    113113        char *path = (char *) data;
     
    131131int main(int argc, char **argv)
    132132{
    133         int rc;
     133        errno_t rc;
    134134        umseconds_t milliseconds_taken = 0;
    135135        char *path = NULL;
Note: See TracChangeset for help on using the changeset viewer.