[Freeswitch-svn] [commit] r5260 - in freeswitch/trunk: scripts/socket/socket2me src/include
Freeswitch SVN
anthm at freeswitch.org
Tue Jun 5 11:39:57 EDT 2007
Author: anthm
Date: Tue Jun 5 11:39:56 2007
New Revision: 5260
Modified:
freeswitch/trunk/scripts/socket/socket2me/socket2me.c
freeswitch/trunk/src/include/switch_utils.h
Log:
small fix and new macro
Modified: freeswitch/trunk/scripts/socket/socket2me/socket2me.c
==============================================================================
--- freeswitch/trunk/scripts/socket/socket2me/socket2me.c (original)
+++ freeswitch/trunk/scripts/socket/socket2me/socket2me.c Tue Jun 5 11:39:56 2007
@@ -248,7 +248,7 @@
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = htonl(INADDR_ANY);
- sendaddr.sin_addr.s_addr = inet_addr(remote_ip);
+ addr.sin_addr.s_addr = inet_addr(remote_ip);
addr.sin_port = htons(remote_port);
sendaddr.sin_family = AF_INET;
Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h (original)
+++ freeswitch/trunk/src/include/switch_utils.h Tue Jun 5 11:39:56 2007
@@ -175,6 +175,7 @@
*/
#define switch_copy_flags(dest, src, flags) (dest)->flags &= ~(flags); (dest)->flags |= ((src)->flags & (flags))
+#define switch_set_string(_dst, _src) switch_copy_string(_dst, _src, sizeof(_dst))
/*!
\brief Free a pointer and set it to NULL unless it already is NULL
More information about the Freeswitch-svn
mailing list