Vadim Yanitskiy has uploaded this change for review. ( 
https://gerrit.osmocom.org/13956


Change subject: trxcon/trx_if.c: use read() call instead of recv()
......................................................................

trxcon/trx_if.c: use read() call instead of recv()

According to the man page of recv(), the only difference of this
call from read() is the presence of flags. With a zero flags
argument, recv() is generally equivalent to read().

Change-Id: I6d43bbf8d52c5fbb8ee0592b7d1c1dfd2dd1548e
---
M src/host/trxcon/trx_if.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/56/13956/1

diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index 4c10da6..91075f4 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -443,7 +443,7 @@
        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 @@
        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;


--
To view, visit https://gerrit.osmocom.org/13956
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d43bbf8d52c5fbb8ee0592b7d1c1dfd2dd1548e
Gerrit-Change-Number: 13956
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <[email protected]>

Reply via email to