Ignore:
File:
1 edited

Legend:

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

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