X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=t%2Flfsr-test.c;h=ea8c8ddbde9a3429624ddde9cb9615a24c7b8c9b;hb=2857c34bd39fcd67c489a8e2b19d9455032bad0f;hp=4009b62e38c3acdcfe827f54708cba230c640745;hpb=22bcb265833f263facd58bcef3d8a159c554460e;p=fio.git diff --git a/t/lfsr-test.c b/t/lfsr-test.c index 4009b62e..ea8c8ddb 100644 --- a/t/lfsr-test.c +++ b/t/lfsr-test.c @@ -1,17 +1,13 @@ #include #include -#include #include #include -#include -#include -#include #include "../lib/lfsr.h" #include "../gettime.h" #include "../fio_time.h" -void usage() +static void usage(void) { printf("Usage: lfsr-test 0x [seed] [spin] [verify]\n"); printf("-------------------------------------------------------------\n"); @@ -43,9 +39,12 @@ int main(int argc, char *argv[]) /* Read arguments */ switch (argc) { case 5: if (strncmp(argv[4], "verify", 7) == 0) - verify = 1; + verify = 1; + /* fall through */ case 4: spin = atoi(argv[3]); + /* fall through */ case 3: seed = atol(argv[2]); + /* fall through */ case 2: numbers = strtol(argv[1], NULL, 16); break; default: usage();