[Asterisk-cvs] asterisk/include/asterisk lock.h,1.16,1.17 utils.h,1.1,1.2
citats at lists.digium.com
citats at lists.digium.com
Sun May 9 04:12:41 CDT 2004
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv28595/include/asterisk
Modified Files:
lock.h utils.h
Log Message:
Add new file utils.c, Move ast_gethostbyname to utils.c
Index: lock.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/lock.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- lock.h 22 Apr 2004 00:20:34 -0000 1.16
+++ lock.h 9 May 2004 08:22:15 -0000 1.17
@@ -179,11 +179,5 @@
#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
Index: utils.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- utils.h 3 May 2004 04:31:11 -0000 1.1
+++ utils.h 9 May 2004 08:22:15 -0000 1.2
@@ -12,9 +12,18 @@
#ifndef _ASTERISK_UTIL_H
#define _ASTERISK_UTIL_H
+#include <netdb.h>
+
static inline int ast_strlen_zero(const char *s)
{
return (*s == '\0');
}
+
+struct ast_hostent {
+ struct hostent hp;
+ char buf[1024];
+};
+
+extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp);
#endif
More information about the svn-commits
mailing list