Skip to content

Commit 6ee80ea

Browse files
committed
clone() interfered with a function with the similar name in sched.h
1 parent 4428a51 commit 6ee80ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

csdr.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int clipdetect_ff(float* input, int input_size)
125125
return 0;
126126
}
127127

128-
int clone()
128+
int clone_()
129129
{
130130
static unsigned char clone_buffer[BUFSIZE];
131131
for(;;)
@@ -291,7 +291,7 @@ int main(int argc, char *argv[])
291291
}
292292
if(!strcmp(argv[1],"clone"))
293293
{
294-
clone();
294+
clone_();
295295
}
296296
if(!strcmp(argv[1],"limit_ff"))
297297
{
@@ -817,7 +817,7 @@ int main(int argc, char *argv[])
817817

818818
if(suboptimal) fprintf(stderr,"note: suboptimal rational resampler chosen.\n");
819819

820-
if(decimation==1&&interpolation==1) clone(); //copy input to output in this special case (and stick in this function).
820+
if(decimation==1&&interpolation==1) clone_(); //copy input to output in this special case (and stick in this function).
821821

822822
//Alloc output buffer
823823
int resampler_output_buffer_size=(BUFSIZE*interpolation)/decimation;
@@ -863,7 +863,7 @@ int main(int argc, char *argv[])
863863
}
864864
else fprintf(stderr,"fractional_decimator_ff: window = %s\n",firdes_get_string_from_window(window));
865865

866-
if(rate==1) clone(); //copy input to output in this special case (and stick in this function).
866+
if(rate==1) clone_(); //copy input to output in this special case (and stick in this function).
867867

868868
//Generate filter taps
869869
int taps_length = firdes_filter_len(transition_bw);

0 commit comments

Comments
 (0)