From 84df52f9ea78e2d71bde648a16b69d80404c6421 Mon Sep 17 00:00:00 2001 From: zwelch Date: Tue, 23 Jun 2009 22:42:54 +0000 Subject: - 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 --- src/server/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/server.c') 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; -- cgit v1.2.3