diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-06-07 11:23:27 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-06-07 11:23:27 +0000 |
commit | f6d8f37b237c92c95a51ff34f525a4c18543087a (patch) | |
tree | 27dda8716d19965f6ebd13086418496537458051 | |
parent | 8e2e31b4e69e0decbf0ad179012ff420322b6681 (diff) |
Fixed more mismatch decl/def function specifications (thanks Samuel Vinson)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1997 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjnath/include/pjnath/stun_msg.h | 2 | ||||
-rw-r--r-- | pjnath/src/pjnath/stun_msg.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pjnath/include/pjnath/stun_msg.h b/pjnath/include/pjnath/stun_msg.h index e293f6fe..9c5602f1 100644 --- a/pjnath/include/pjnath/stun_msg.h +++ b/pjnath/include/pjnath/stun_msg.h @@ -1642,7 +1642,7 @@ PJ_DECL(pj_status_t) pj_stun_unknown_attr_create(pj_pool_t *pool, * @param pool The pool to allocate memory from. * @param msg The STUN message. * @param attr_cnt Number of attributes in the array (can be zero). - * @param attr Optional array of attributes. + * @param attr Optional array of attribute types. * * @return PJ_SUCCESS on success or the appropriate error code. */ diff --git a/pjnath/src/pjnath/stun_msg.c b/pjnath/src/pjnath/stun_msg.c index ad1e9a31..cab0f11b 100644 --- a/pjnath/src/pjnath/stun_msg.c +++ b/pjnath/src/pjnath/stun_msg.c @@ -1557,13 +1557,13 @@ PJ_DEF(pj_status_t) pj_stun_unknown_attr_create(pj_pool_t *pool, /* Create and add STUN UNKNOWN-ATTRIBUTES attribute to the message. */ PJ_DEF(pj_status_t) pj_stun_msg_add_unknown_attr(pj_pool_t *pool, pj_stun_msg *msg, - pj_size_t attr_cnt, - const pj_uint16_t attr_types[]) + unsigned attr_cnt, + const pj_uint16_t attr_type[]) { pj_stun_unknown_attr *attr = NULL; pj_status_t status; - status = pj_stun_unknown_attr_create(pool, attr_cnt, attr_types, &attr); + status = pj_stun_unknown_attr_create(pool, attr_cnt, attr_type, &attr); if (status != PJ_SUCCESS) return status; @@ -1646,7 +1646,7 @@ static void* clone_unknown_attr(pj_pool_t *pool, const void *src) PJ_DEF(pj_status_t) pj_stun_binary_attr_create(pj_pool_t *pool, int attr_type, const pj_uint8_t *data, - pj_size_t length, + unsigned length, pj_stun_binary_attr **p_attr) { pj_stun_binary_attr *attr; @@ -1673,7 +1673,7 @@ PJ_DEF(pj_status_t) pj_stun_msg_add_binary_attr(pj_pool_t *pool, pj_stun_msg *msg, int attr_type, const pj_uint8_t *data, - pj_size_t length) + unsigned length) { pj_stun_binary_attr *attr = NULL; pj_status_t status; |