From ed56b47de7f4a39c426fef692f424d82e565714a Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 29 Jun 2004 12:56:46 +0000 Subject: Create reentrant ast_inet_ntoa and replace all inet_ntoa's with ast_inet_ntoa's (but #1944) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3345 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/asterisk/utils.h') diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index aa456262f..e6e4e6f79 100755 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -29,6 +29,9 @@ extern int ast_base64encode(char *dst, unsigned char *src, int srclen, int max); extern int ast_base64decode(unsigned char *dst, char *src, int max); extern int test_for_thread_safety(void); +extern const char *ast_inet_ntoa(char *buf, int bufsiz, struct in_addr ia); extern int ast_utils_init(void); +#define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__ + #endif -- cgit v1.2.3