]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Also export switch_inet_pton
authorMathieu Rene <mrene@avgs.ca>
Wed, 10 Jun 2009 00:48:35 +0000 (00:48 +0000)
committerMathieu Rene <mrene@avgs.ca>
Wed, 10 Jun 2009 00:48:35 +0000 (00:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13741 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_utils.h
src/inet_pton.c
src/switch_utils.c

index 1b13777166e7d6a835a92fcaec11a6d60feff32a..679944d65ec504e169cf8a0d9d8b6347326b7768 100644 (file)
@@ -561,7 +561,7 @@ SWITCH_DECLARE(switch_bool_t) switch_network_list_validate_ip_token(switch_netwo
 
 #define switch_test_subnet(_ip, _net, _mask) (_mask ? ((_net & _mask) == (_ip & _mask)) : _net ? _net == _ip : 1)
 
-int switch_inet_pton(int af, const char *src, void *dst);
+SWITCH_DECLARE(int) switch_inet_pton(int af, const char *src, void *dst)
 
 /* malloc or DIE macros */
 #ifdef NDEBUG
index 33e55c1de81ed7646b9beb11c2ab40a0557d9d38..501df0ff2f68cac5ba3923fcdf0cf4ccfdb1da86 100644 (file)
@@ -66,7 +66,7 @@ static int      inet_pton6(const char *src, unsigned char *dst);
  * author:
  *      Paul Vixie, 1996.
  */
-int
+SWITCH_DECLARE(int)
 switch_inet_pton(int af, const char *src, void *dst)
 {
   switch (af) {
index 0f21c10802a7ddd92588e10ab0e4844c9284b26e..de1bf0f87fef3544a42a70e43f5388318cf97a3e 100644 (file)
@@ -57,7 +57,7 @@ struct switch_network_list {
 };
 
 #ifndef WIN32
-int switch_inet_pton(int af, const char *src, void *dst)
+SWITCH_DECLARE(int) switch_inet_pton(int af, const char *src, void *dst)
 {
        return inet_pton(af, src, dst);
 }