chore: EXIT_SUCCESS / EXIT_FAILURE

pull/111/head
Guenael 2021-12-22 23:20:07 -05:00
rodzic f2ce421e87
commit 6b7521102f
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -847,18 +847,18 @@ int main(int argc, char **argv) {
if (rx_options.selftest == true) {
if (decoderSelfTest()) {
fprintf(stdout, "Self-test SUCCESS!\n");
exit(0);
return EXIT_SUCCESS;
}
else {
fprintf(stderr, "Self-test FAILED!\n");
exit(1);
return EXIT_FAILURE;
}
}
if (rx_options.readfile == true) {
fprintf(stdout, "Reading IQ file: %s\n", rx_options.filename);
decodeRecordedFile(rx_options.filename);
exit(0);
return EXIT_SUCCESS;
}
if (rx_options.writefile == true) {
@ -868,19 +868,19 @@ int main(int argc, char **argv) {
if (rx_options.dialfreq == 0) {
fprintf(stderr, "Please specify a dial frequency.\n");
fprintf(stderr, " --help for usage...\n");
exit(1);
return EXIT_FAILURE;
}
if (dec_options.rcall[0] == 0) {
fprintf(stderr, "Please specify your callsign.\n");
fprintf(stderr, " --help for usage...\n");
exit(1);
return EXIT_FAILURE;
}
if (dec_options.rloc[0] == 0) {
fprintf(stderr, "Please specify your locator.\n");
fprintf(stderr, " --help for usage...\n");
exit(1);
return EXIT_FAILURE;
}
/* Calcule shift offset */