[svn-commits] mnicholson: trunk r273352 - /trunk/main/manager.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jul 1 09:37:41 CDT 2010
Author: mnicholson
Date: Thu Jul 1 09:37:37 2010
New Revision: 273352
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273352
Log:
Fixed whitespace problems
Modified:
trunk/main/manager.c
Modified: trunk/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/manager.c?view=diff&rev=273352&r1=273351&r2=273352
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Thu Jul 1 09:37:37 2010
@@ -4604,7 +4604,7 @@
};
int flags;
int res;
- struct protoent *p;
+ struct protoent *p;
if (session == NULL) {
goto done;
@@ -4613,15 +4613,15 @@
/* here we set TCP_NODELAY on the socket to disable Nagle's algorithm.
* This is necessary to prevent delays (caused by buffering) as we
* write to the socket in bits and peices. */
- p = getprotobyname("tcp");
- if (p) {
- int arg = 1;
- if( setsockopt(ser->fd, p->p_proto, TCP_NODELAY, (char *)&arg, sizeof(arg) ) < 0 ) {
- ast_log(LOG_WARNING, "Failed to set manager tcp connection to TCP_NODELAY mode: %s\nSome manager actions may be slow to respond.\n", strerror(errno));
- }
- } else {
- ast_log(LOG_WARNING, "Failed to set manager tcp connection to TCP_NODELAY, getprotobyname(\"tcp\") failed\nSome manager actions may be slow to respond.\n");
- }
+ p = getprotobyname("tcp");
+ if (p) {
+ int arg = 1;
+ if( setsockopt(ser->fd, p->p_proto, TCP_NODELAY, (char *)&arg, sizeof(arg) ) < 0 ) {
+ ast_log(LOG_WARNING, "Failed to set manager tcp connection to TCP_NODELAY mode: %s\nSome manager actions may be slow to respond.\n", strerror(errno));
+ }
+ } else {
+ ast_log(LOG_WARNING, "Failed to set manager tcp connection to TCP_NODELAY, getprotobyname(\"tcp\") failed\nSome manager actions may be slow to respond.\n");
+ }
flags = fcntl(ser->fd, F_GETFL);
if (!block_sockets) { /* make sure socket is non-blocking */
More information about the svn-commits
mailing list