switch (argc) {
case 5: if (strncmp(argv[4], "verify", 7) == 0)
verify = 1;
- fallthrough;
+ fio_fallthrough;
case 4: spin = atoi(argv[3]);
- fallthrough;
+ fio_fallthrough;
case 3: seed = atol(argv[2]);
- fallthrough;
+ fio_fallthrough;
case 2: numbers = strtol(argv[1], NULL, 16);
break;
default: usage();
/* Create verification table */
if (verify) {
v_size = numbers * sizeof(uint8_t);
- v = malloc(v_size);
- memset(v, 0, v_size);
+ v = calloc(1, v_size);
printf("\nVerification table is %lf KiB\n", (double)(v_size) / 1024);
}
v_start = v;