main_common: Move init and cleanup function to main function

This commit is contained in:
Andreas Eversberg committed 2017-03-04 07:12:12 +01:00
1 parent 4201717f36
commit 3fc4fc54be
7 files changed
+20 -59

No files matched your search

+1 -7
View File
@@ -228,9 +228,6 @@ int main(int argc, char *argv[])
print_image();
/* init functions */
rc = init_common(station_id, 7);
if (rc < 0)
goto fail;
scrambler_init();
init_sysinfo();
dsp_init();
@@ -303,12 +300,9 @@ int main(int argc, char *argv[])
}
}
main_common(&quit, latency, interval, NULL);
main_common(&quit, latency, interval, NULL, station_id, 7);
fail:
/* cleanup functions */
cleanup_common();
flush_db();
/* destroy transceiver instance */