summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-16 20:40:20 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-16 20:56:08 +0100
commitec5409ca4f46c30813c7d213d15880a691e8e91f (patch)
treef0a9a0c96a8368b2542b74d98bbb312ad90e2ca3
parent120d23e8a123d9679a5bbcc4099c7b56f41b0704 (diff)
sccp: Make the sccp_create_addr function public
Prefix it with sccp_ and remove the static. This way we can test this from the unit tests.
-rw-r--r--src/sccp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sccp.c b/src/sccp.c
index 9a988de..1869631 100644
--- a/src/sccp.c
+++ b/src/sccp.c
@@ -481,7 +481,7 @@ static int _sccp_parse_err(struct msgb *msgb, struct sccp_parse_result *result)
return 0;
}
-static void create_sccp_addr(struct msgb *msg, const struct sockaddr_sccp *sock)
+int sccp_create_sccp_addr(struct msgb *msg, const struct sockaddr_sccp *sock)
{
int pos = 2;
uint8_t *data;
@@ -538,8 +538,8 @@ struct msgb *sccp_create_udt(int class, const struct sockaddr_sccp *in,
udt->variable_data = 7 + out->gti_len + in->gti_len;
/* for variable data we start with a size and the data */
- create_sccp_addr(msg, out);
- create_sccp_addr(msg, in);
+ sccp_create_sccp_addr(msg, out);
+ sccp_create_sccp_addr(msg, in);
/* copy the payload */
data = msgb_put(msg, 1 + len);
@@ -774,7 +774,7 @@ static int _sccp_send_connection_request(struct sccp_connection *connection,
req->optional_start = 4 + called->gti_len;
/* write the called party address */
- create_sccp_addr(request, called);
+ sccp_create_sccp_addr(request, called);
/* write the payload */
if (msg) {