summaryrefslogtreecommitdiffstats
path: root/src/input/hsl.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-06-21 14:15:46 +0200
committerPablo Neira Ayuso2011-06-21 14:15:46 +0200
commit7a249408056c5375030cd0cf171caa17a6715cb8 (patch)
treefd39dd0eae1dca201d8602ac3035eefb83c44158 /src/input/hsl.c
parenthsl: add support for BTS-mode (diff)
downloadlibosmo-abis-7a249408056c5375030cd0cf171caa17a6715cb8.tar.gz
libosmo-abis-7a249408056c5375030cd0cf171caa17a6715cb8.tar.xz
libosmo-abis-7a249408056c5375030cd0cf171caa17a6715cb8.zip
input: use generic ipa_msg_recv() instead of ipaccess_read_msg()
We use the new generic function to receive messages, instead of ipaccess_read_msg. It's a mere renaming, but it's the first step before the rework that will happen soon to avoid calling read() twice.
Diffstat (limited to 'src/input/hsl.c')
-rw-r--r--src/input/hsl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/hsl.c b/src/input/hsl.c
index e6388c8..cb1aa51 100644
--- a/src/input/hsl.c
+++ b/src/input/hsl.c
@@ -84,8 +84,8 @@ static int handle_ts1_read(struct osmo_fd *bfd)
struct msgb *msg;
int ret = 0, error;
- msg = ipaccess_read_msg(bfd, &error);
- if (!msg) {
+ error = ipa_msg_recv(bfd->fd, &msg);
+ if (error <= 0) {
if (e1i_ts->line->ops.error)
e1i_ts->line->ops.error(NULL, error);
if (error == 0) {