Skip to content
Snippets Groups Projects
Commit 6ee80ea7 authored by ha7ilm's avatar ha7ilm
Browse files

clone() interfered with a function with the similar name in sched.h

parent 4428a518
Branches master
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ int clipdetect_ff(float* input, int input_size) ...@@ -125,7 +125,7 @@ int clipdetect_ff(float* input, int input_size)
return 0; return 0;
} }
int clone() int clone_()
{ {
static unsigned char clone_buffer[BUFSIZE]; static unsigned char clone_buffer[BUFSIZE];
for(;;) for(;;)
...@@ -291,7 +291,7 @@ int main(int argc, char *argv[]) ...@@ -291,7 +291,7 @@ int main(int argc, char *argv[])
} }
if(!strcmp(argv[1],"clone")) if(!strcmp(argv[1],"clone"))
{ {
clone(); clone_();
} }
if(!strcmp(argv[1],"limit_ff")) if(!strcmp(argv[1],"limit_ff"))
{ {
...@@ -817,7 +817,7 @@ int main(int argc, char *argv[]) ...@@ -817,7 +817,7 @@ int main(int argc, char *argv[])
if(suboptimal) fprintf(stderr,"note: suboptimal rational resampler chosen.\n"); if(suboptimal) fprintf(stderr,"note: suboptimal rational resampler chosen.\n");
if(decimation==1&&interpolation==1) clone(); //copy input to output in this special case (and stick in this function). if(decimation==1&&interpolation==1) clone_(); //copy input to output in this special case (and stick in this function).
//Alloc output buffer //Alloc output buffer
int resampler_output_buffer_size=(BUFSIZE*interpolation)/decimation; int resampler_output_buffer_size=(BUFSIZE*interpolation)/decimation;
...@@ -863,7 +863,7 @@ int main(int argc, char *argv[]) ...@@ -863,7 +863,7 @@ int main(int argc, char *argv[])
} }
else fprintf(stderr,"fractional_decimator_ff: window = %s\n",firdes_get_string_from_window(window)); else fprintf(stderr,"fractional_decimator_ff: window = %s\n",firdes_get_string_from_window(window));
if(rate==1) clone(); //copy input to output in this special case (and stick in this function). if(rate==1) clone_(); //copy input to output in this special case (and stick in this function).
//Generate filter taps //Generate filter taps
int taps_length = firdes_filter_len(transition_bw); int taps_length = firdes_filter_len(transition_bw);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment