diff options
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/include/pj/hash.h | 3 | ||||
-rw-r--r-- | pjlib/src/pj/addr_resolv_sock.c | 2 |
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; |