{
int i, seed = -1;
int num_loops = 5000;
- int num_procs = 3;
+ unsigned num_procs = 3;
int c, pfds[2];
extern char *optarg;
pid_t *pids;
while ((c = getopt(argc, argv, "n:l:s:H:thkm")) != -1) {
switch (c) {
case 'n':
- num_procs = strtol(optarg, NULL, 0);
+ num_procs = strtoul(optarg, NULL, 0);
break;
case 'l':
num_loops = strtol(optarg, NULL, 0);
seed = (getpid() + time(NULL)) & 0x7FFFFFFF;
}
- printf("Testing with %d processes, %d loops, %d hash_size, seed=%d%s\n",
+ printf("Testing with %u processes, %d loops, %d hash_size, seed=%d%s\n",
num_procs, num_loops, hash_size, seed,
(always_transaction ? " (all within transactions)" : ""));