Fixed "csdr fifo".
This commit is contained in:
parent
587433e770
commit
84e00184af
1 changed files with 2 additions and 2 deletions
4
csdr.c
4
csdr.c
|
@ -344,10 +344,10 @@ int main(int argc, char *argv[])
|
|||
if(!sendbufsize(initialize_buffers())) return -2;
|
||||
|
||||
int fifo_buffer_size;
|
||||
if(argc<=2) return badsyntax("need required parameter (fifo buffer size)");
|
||||
if(argc<=2) return badsyntax("need required parameter (buffer_size)");
|
||||
sscanf(argv[2],"%d",&fifo_buffer_size);
|
||||
int fifo_num_buffers;
|
||||
if(argc<=3) return badsyntax("need required parameter (fifo number of buffers)");
|
||||
if(argc<=3) return badsyntax("need required parameter (number of buffers)");
|
||||
sscanf(argv[3],"%d",&fifo_num_buffers);
|
||||
|
||||
char** fifo_buffers = (char**)malloc(sizeof(char*)*fifo_num_buffers);
|
||||
|
|
Loading…
Reference in a new issue