From a1004640ce02e4ae63e244de241b1c43a508f044 Mon Sep 17 00:00:00 2001
From: Harald Welte <laforge@gnumonks.org>
Date: Thu, 23 Feb 2017 21:07:01 +0100
Subject: libosmoctrl: Fix typo in ctrl_interface_connect()

it's osmo_sock_init_ofd(), not osmo_sock_init_ifd()

Change-Id: Ia6a82031a691403f641815862613d99b31a3a159
---
 src/ctrl/control_if.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c
index cf79670f..d78b513d 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -681,7 +681,7 @@ struct ctrl_handle *ctrl_interface_connect(void *data, const char *addr,
 
 	ctrl->listen_fd.cb = NULL;
 	ctrl->listen_fd.data = ctrl;
-	ret = osmo_sock_init_ifd(&ctrl->listen_fd, AF_INET, SOCK_STREAM,
+	ret = osmo_sock_init_ofd(&ctrl->listen_fd, AF_INET, SOCK_STREAM,
 				 IPPROTO_TCP, addr, port, OSMO_SOCK_F_CONNECT);
 	if (ret < 0) {
 		LOGP(DLCTRL, LOGL_ERROR, "Cannot connect to CTRL at %s:%u\n",
-- 
cgit v1.2.3