Filesource filename to constant

master
Xavier Arteaga 4 years ago committed by Xavier Arteaga
parent 5eadc06dd4
commit b69057b76e

@ -35,7 +35,7 @@ typedef struct SRSRAN_API {
srsran_datatype_t type;
} srsran_filesource_t;
SRSRAN_API int srsran_filesource_init(srsran_filesource_t* q, char* filename, srsran_datatype_t type);
SRSRAN_API int srsran_filesource_init(srsran_filesource_t* q, const char* filename, srsran_datatype_t type);
SRSRAN_API void srsran_filesource_free(srsran_filesource_t* q);

@ -17,7 +17,7 @@
#include "srsran/phy/io/filesource.h"
#include "srsran/phy/utils/debug.h"
int srsran_filesource_init(srsran_filesource_t* q, char* filename, srsran_datatype_t type)
int srsran_filesource_init(srsran_filesource_t* q, const char* filename, srsran_datatype_t type)
{
bzero(q, sizeof(srsran_filesource_t));
q->f = fopen(filename, "r");

Loading…
Cancel
Save