diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:42:54 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:42:54 +0000 |
commit | 84df52f9ea78e2d71bde648a16b69d80404c6421 (patch) | |
tree | 93c683e2ec71d33978585da29c4bcaa73fd37222 /src/server/server.c | |
parent | 3813fda44adcea486b7308423a699f63d79273ee (diff) |
- Fixes '=' whitespace
- Replace ')\(=\)\(\w\)' with ') \1 \2'.
- Replace '\(\w\)\(=\)(' with '\1 \2 ('.
- Replace '\(\w\)\(=\)\(\w\)' with '\1 \2 \3'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2372 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server/server.c')
-rw-r--r-- | src/server/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/server.c b/src/server/server.c index bca9774f..a93d6ada 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -51,7 +51,7 @@ int add_connection(service_t *service, command_context_t *cmd_ctx) socklen_t address_size; connection_t *c, **p; int retval; - int flag=1; + int flag = 1; c = malloc(sizeof(connection_t)); c->fd = -1; @@ -70,7 +70,7 @@ int add_connection(service_t *service, command_context_t *cmd_ctx) /* This increases performance dramatically for e.g. GDB load which * does not have a sliding window protocol. */ - retval=setsockopt(c->fd, /* socket affected */ + retval = setsockopt(c->fd, /* socket affected */ IPPROTO_TCP, /* set option at TCP level */ TCP_NODELAY, /* name of option */ (char *)&flag, /* the cast is historical cruft */ @@ -183,7 +183,7 @@ int add_service(char *name, enum connection_type type, unsigned short port, int } #ifndef _WIN32 - int segsize=65536; + int segsize = 65536; setsockopt(c->fd, IPPROTO_TCP, TCP_MAXSEG, &segsize, sizeof(int)); #endif int window_size = 128 * 1024; |