summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-30 11:59:07 +0100
committerAndreas Eversberg2010-01-30 11:59:07 +0100
commitce460a94e6371173c4ce063229276b6d32f47abd (patch)
treea99e87d2ed002a907e75e7d3a9ce0b58cfd13fe5
parent- Fixed HLC (higher layer capability) modification to LCR routing. (diff)
downloadlcr-ce460a94e6371173c4ce063229276b6d32f47abd.tar.gz
lcr-ce460a94e6371173c4ce063229276b6d32f47abd.tar.xz
lcr-ce460a94e6371173c4ce063229276b6d32f47abd.zip
register_fd() bugfix.
-rw-r--r--gsm.cpp2
-rw-r--r--mISDN.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gsm.cpp b/gsm.cpp
index 3358329..9ffcc4c 100644
--- a/gsm.cpp
+++ b/gsm.cpp
@@ -176,7 +176,7 @@ int Pgsm::bchannel_open(int index)
bchannel_close();
return(ret);
}
- memset(&p_m_g_gsm_b_fd, 0, sizeof(p_m_g_gsm_b_fd.fd));
+ memset(&p_m_g_gsm_b_fd, 0, sizeof(p_m_g_gsm_b_fd));
p_m_g_gsm_b_fd.fd = p_m_g_gsm_b_sock;
register_fd(&p_m_g_gsm_b_fd, LCR_FD_READ, b_handler, this, 0);
diff --git a/mISDN.cpp b/mISDN.cpp
index 035b78b..7be3d4f 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -82,7 +82,7 @@ int mISDN_initialize(void)
if (pipe(upqueue_pipe) < 0)
FATAL("Failed to open pipe\n");
- memset(&upqueue_fd, 0, sizeof(upqueue_fd.fd));
+ memset(&upqueue_fd, 0, sizeof(upqueue_fd));
upqueue_fd.fd = upqueue_pipe[0];
register_fd(&upqueue_fd, LCR_FD_READ, mISDN_upqueue, NULL, 0);