summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-03-10 23:15:36 +0000
committerBenny Prijono <bennylp@teluu.com>2007-03-10 23:15:36 +0000
commit64f5af70111821e4319624057b9271066591935c (patch)
tree793e5ce1f06c2597cc05f73561d3bfbf270f5601 /pjlib
parentfc33da579874f81621521875f9e4cffda0a327b1 (diff)
Completed and tested (simple test) the TURN server and command line STUN/TURN client
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1054 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/include/pj/hash.h3
-rw-r--r--pjlib/src/pj/addr_resolv_sock.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/pjlib/include/pj/hash.h b/pjlib/include/pj/hash.h
index da768519..ed1805d7 100644
--- a/pjlib/include/pj/hash.h
+++ b/pjlib/include/pj/hash.h
@@ -119,7 +119,8 @@ PJ_DECL(void *) pj_hash_get( pj_hash_table_t *ht,
* @param pool the pool to allocate the new entry if a new entry has to be
* created.
* @param ht the hash table.
- * @param key the key.
+ * @param key the key, which MUST point to buffer that remains valid
+ * for the duration of the entry.
* @param keylen the length of the key, or PJ_HASH_KEY_STRING to use the
* string length of the key.
* @param hval if the value is not zero, then the hash table will use
diff --git a/pjlib/src/pj/addr_resolv_sock.c b/pjlib/src/pj/addr_resolv_sock.c
index 04c0152b..9e64378b 100644
--- a/pjlib/src/pj/addr_resolv_sock.c
+++ b/pjlib/src/pj/addr_resolv_sock.c
@@ -55,7 +55,7 @@ PJ_DEF(pj_status_t) pj_gethostbyname(const pj_str_t *hostname, pj_hostent *phe)
}
/* Resolve the IP address of local machine */
-pj_status_t pj_gethostip(pj_in_addr *addr)
+PJ_DEF(pj_status_t) pj_gethostip(pj_in_addr *addr)
{
const pj_str_t *hostname = pj_gethostname();
struct pj_hostent he;