aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-09 13:50:38 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-09 13:50:38 +0000
commit1bcbf414c6d8c7fd9d03cfc6880d31628a384fc2 (patch)
tree8b162576e559dfe41a5c408df154368de94161a8 /utils.c
parentf23e021126c19cff87ce36c9b312a433841378f8 (diff)
Provide proper code attribution for public domain gethostbyname_r
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5609 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index f5fe76e20..5264ecc05 100755
--- a/utils.c
+++ b/utils.c
@@ -53,7 +53,10 @@ char *ast_strip(char *buf)
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,
size_t buflen, struct hostent **result,
int *h_errnop)