Skip to content
Snippets Groups Projects
Commit 8b308bdb authored by Mark Spencer's avatar Mark Spencer
Browse files

Provide proper code attribution for public domain gethostbyname_r

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 49a7a480
Branches
Tags
No related merge requests found
...@@ -53,7 +53,10 @@ char *ast_strip(char *buf) ...@@ -53,7 +53,10 @@ char *ast_strip(char *buf)
AST_MUTEX_DEFINE_STATIC(__mutex); AST_MUTEX_DEFINE_STATIC(__mutex);
/* Recursive replacement for gethostbyname for BSD-based systems */ /* Recursive replacement for gethostbyname for BSD-based systems. This
routine is derived from code originally written and placed in the public
domain by Enzo Michelangeli <em@em.no-ip.com> */
static int gethostbyname_r (const char *name, struct hostent *ret, char *buf, static int gethostbyname_r (const char *name, struct hostent *ret, char *buf,
size_t buflen, struct hostent **result, size_t buflen, struct hostent **result,
int *h_errnop) int *h_errnop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment