Skip to content

Commit

Permalink
Whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jul 14, 2011
1 parent 4a6efee commit 4c2d054
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/uv-win.h
Expand Up @@ -64,7 +64,7 @@ typedef enum {
int flags; \
uv_err_t error; \
struct uv_req_s* next_req;

#define uv_stream_connection_fields \
unsigned int write_reqs_pending; \
uv_req_t* shutdown_req;
Expand Down
2 changes: 1 addition & 1 deletion test/dns-server.c
Expand Up @@ -165,7 +165,7 @@ static void process_req(uv_stream_t* handle, ssize_t nread, uv_buf_t buf) {
rec_remaining = ntohs(reclen_n) - (DNSREC_LEN - 2);
}
}

if (rec_remaining <= readbuf_remaining) {
/* prepare reply */
addrsp(wr, hdrbuf);
Expand Down
8 changes: 4 additions & 4 deletions test/echo-server.c
Expand Up @@ -165,10 +165,10 @@ static void on_server_close(uv_handle_t* handle) {
static int tcp4_echo_start(int port) {
struct sockaddr_in addr = uv_ip4_addr("0.0.0.0", port);
int r;

server = (uv_handle_t*)&tcpServer;
serverType = TCP;

r = uv_tcp_init(&tcpServer);
if (r) {
/* TODO: Error codes */
Expand Down Expand Up @@ -197,7 +197,7 @@ static int tcp4_echo_start(int port) {
static int tcp6_echo_start(int port) {
struct sockaddr_in6 addr6 = uv_ip6_addr("::1", port);
int r;

server = (uv_handle_t*)&tcpServer;
serverType = TCP;

Expand Down Expand Up @@ -229,7 +229,7 @@ static int tcp6_echo_start(int port) {

static int pipe_echo_start(char* pipeName) {
int r;

server = (uv_handle_t*)&pipeServer;
serverType = PIPE;

Expand Down

0 comments on commit 4c2d054

Please sign in to comment.