Commit 35a4c544 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

clean code

parent 0cb07be7
......@@ -29,12 +29,16 @@ int main(int argc, char** argv){
char const *channel_name, *input_filename, *output_filename, *length_str, *samplerate_str, *period_str, *offset_str, *gain_str;
char *default_output;
float offset, gain;
int number=-1;
float a, b, u, v,result, moy;
int number=-1, index;
uint32_t start_load, time_load, start_delay, time_delay;
blc_channel channel;
FILE *file;
int period, length;
int samplerate;
uint32_t iteration=0;
asprintf(&default_output, "/%s%d", basename(argv[0]), getpid()); //This will not be free but it is only allocate once
blc_program_add_option(&output_filename, 'f', "file", "string", "filename of the file to export", NULL);
......@@ -61,12 +65,8 @@ int main(int argc, char** argv){
SYSTEM_ERROR_CHECK(file=fopen(input_filename, "r"), NULL, "Opening '%s'", input_filename);
channel.publish();
uint32_t iteration=0;
float a, b, u, v,result, moy;
a=0;
u=0;
int index;
b=0;
start_delay=0;
iteration=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment