Whitespace fixes
This commit is contained in:
parent
4a6efee4ce
commit
4c2d0545fc
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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 */
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user