diff options
author | Mark Spencer <markster@digium.com> | 2004-06-29 12:56:46 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-29 12:56:46 +0000 |
commit | f97df161f41d55c9984af48f40d70a86b993e7c3 (patch) | |
tree | d715877541188789ffca02a85def77a7a01cbea9 /include | |
parent | 5bb0c3786d8a5be628f61f1d95d1aa7d41b8dcde (diff) |
Create reentrant ast_inet_ntoa and replace all inet_ntoa's with ast_inet_ntoa's (but #1944)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |