making replay_node compile again
This commit is contained in:
@@ -410,7 +410,6 @@ typedef int(*oai_transport_initfunc_t)(openair0_device *device, openair0_config_
|
|||||||
|
|
||||||
#define OPTION_LZ4 0x00000001 // LZ4 compression (option_value is set to compressed size)
|
#define OPTION_LZ4 0x00000001 // LZ4 compression (option_value is set to compressed size)
|
||||||
|
|
||||||
#define sample_t struct complex16 // 2*16 bits complex number
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint64_t magic; // Magic value (see defines above)
|
uint64_t magic; // Magic value (see defines above)
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ extern RAN_CONTEXT_t RC;
|
|||||||
|
|
||||||
pthread_mutex_t Sockmutex;
|
pthread_mutex_t Sockmutex;
|
||||||
|
|
||||||
|
typedef struct complex16 sample_t; // 2*16 bits complex number
|
||||||
|
|
||||||
typedef struct buffer_s {
|
typedef struct buffer_s {
|
||||||
int conn_sock;
|
int conn_sock;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <common/utils/simple_executable.h>
|
#include <common/utils/simple_executable.h>
|
||||||
|
|
||||||
|
volatile int oai_exit = 0;
|
||||||
|
|
||||||
void fullwrite(int fd, void *_buf, int count) {
|
void fullwrite(int fd, void *_buf, int count) {
|
||||||
char *buf = _buf;
|
char *buf = _buf;
|
||||||
@@ -123,7 +124,7 @@ int main(int argc, char *argv[]) {
|
|||||||
setblocking(serviceSock, blocking);
|
setblocking(serviceSock, blocking);
|
||||||
AssertFatal(read(fd,&header,sizeof(header)), "");
|
AssertFatal(read(fd,&header,sizeof(header)), "");
|
||||||
fullwrite(serviceSock, &header, sizeof(header));
|
fullwrite(serviceSock, &header, sizeof(header));
|
||||||
int dataSize=sizeof(sample_t)*header.size*header.nbAnt;
|
int dataSize=sizeof(int32_t)*header.size*header.nbAnt;
|
||||||
|
|
||||||
if (dataSize>bufSize) {
|
if (dataSize>bufSize) {
|
||||||
void * new_buff = realloc(buff, dataSize);
|
void * new_buff = realloc(buff, dataSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user