summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/host/trxcon/trx_if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index 4c10da6c..91075f44 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -443,7 +443,7 @@ static int trx_ctrl_read_cb(struct osmo_fd *ofd, unsigned int what)
int len, resp, rsp_len;
char buf[1500], *p;
- len = recv(ofd->fd, buf, sizeof(buf) - 1, 0);
+ len = read(ofd->fd, buf, sizeof(buf) - 1);
if (len <= 0)
return len;
buf[len] = '\0';
@@ -550,7 +550,7 @@ static int trx_data_rx_cb(struct osmo_fd *ofd, unsigned int what)
uint32_t fn;
int len;
- len = recv(ofd->fd, buf, sizeof(buf), 0);
+ len = read(ofd->fd, buf, sizeof(buf));
if (len <= 0)
return len;