Changeset 1433ecda in mainline for uspace/app/bnchmark


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    5555#define MBYTE (1024*1024)
    5656
    57 typedef errno_t(*measure_func_t)(void *);
     57typedef errno_t (*measure_func_t)(void *);
    5858typedef unsigned long umseconds_t; /* milliseconds */
    5959
    6060static void syntax_print(void);
    6161
    62 static errno_t measure(measure_func_t fn, void* data, umseconds_t *result)
     62static errno_t measure(measure_func_t fn, void *data, umseconds_t *result)
    6363{
    6464        struct timeval start_time;
     
    155155
    156156        // Skip program name
    157         --argc; ++argv;
     157        --argc;
     158        ++argv;
    158159
    159160        iterations = strtol(*argv, &endptr, 10);
     
    164165        }
    165166
    166         --argc; ++argv;
     167        --argc;
     168        ++argv;
    167169        test_type = *argv;
    168170
    169         --argc; ++argv;
     171        --argc;
     172        ++argv;
    170173        log_str = *argv;
    171174
    172         --argc; ++argv;
     175        --argc;
     176        ++argv;
    173177        path = *argv;
    174178
    175179        if (str_cmp(test_type, "sequential-file-read") == 0) {
    176180                fn = sequential_read_file;
    177         }
    178         else if (str_cmp(test_type, "sequential-dir-read") == 0) {
     181        } else if (str_cmp(test_type, "sequential-dir-read") == 0) {
    179182                fn = sequential_read_dir;
    180         }
    181         else {
     183        } else {
    182184                fprintf(stderr, "Error, unknown test type\n");
    183185                syntax_print();
Note: See TracChangeset for help on using the changeset viewer.