From 64f5af70111821e4319624057b9271066591935c Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 10 Mar 2007 23:15:36 +0000 Subject: 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 --- pjlib/include/pj/hash.h | 3 ++- pjlib/src/pj/addr_resolv_sock.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'pjlib') 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; -- cgit v1.2.3