aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmux.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2015-07-21 10:40:00 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2015-07-21 11:05:41 +0200
commite1aefad278de2ca9cc410cf6de6752424097c063 (patch)
treea91254fc58780a6b3e6bd16158435172229ac488 /src/osmux.c
parentf9407cc66811d67641fa1d1bb828dc051470ba10 (diff)
osmux: kill osmux_get_hdr()
Never used, so let's get rid of this function. We can recover it later on in case we need it.
Diffstat (limited to 'src/osmux.c')
-rw-r--r--src/osmux.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/osmux.c b/src/osmux.c
index 74883d9..eedae69 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -39,18 +39,6 @@
static void *osmux_ctx;
-struct osmux_hdr *osmux_get_hdr(struct msgb *msg)
-{
- struct osmux_hdr *osmuxh = (struct osmux_hdr *)msg->data;
-
- if (msg->len < sizeof(struct osmux_hdr)) {
- DEBUGPC(DLMUX, "received OSMUX frame too short (len = %d)\n",
- msg->len);
- return NULL;
- }
- return osmuxh;
-}
-
static uint32_t osmux_get_payload_len(struct osmux_hdr *osmuxh)
{
return osmo_amr_bytes(osmuxh->amr_ft) * (osmuxh->ctr+1);