Add new file utils.c, Move ast_gethostbyname to utils.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-05-09 08:22:15 +00:00
parent 8ef3b1544b
commit c00550f3ae
8 changed files with 144 additions and 139 deletions

View File

@@ -179,11 +179,5 @@ static inline int ast_mutex_init(ast_mutex_t *t)
#endif /* DEBUG_THREADS */
#define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__
struct ast_hostent {
struct hostent hp;
char buf[1024];
};
extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp);
#endif