The valid exit code are form 0 to 255. Then using -1 means that the
effective exit code will be 0377==255. It isn't accurate. The exit code
of 1 is merely very often used for failure status.
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
idx %= nlab;
if (repeat > nlab) {
fprintf(stderr, "Wrong parameters");
- exit(-1);
+ exit(1);
}
}
return idx;
repeat_subj++;
if (repeat_subj > nlab) {
fprintf(stderr, "Wrong parameters");
- exit(-1);
+ exit(1);
} else
repeat = 0;
}