diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-03-31 13:33:40 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-03-31 13:39:16 +0200 |
commit | 5a58b9204439fff4da9eeaa0d72e143a0990e8d2 (patch) | |
tree | b5ed8d0fffa728172995a300fa6335d25b0385c4 /src | |
parent | b32ea2e373dd303e2d651d0bdc2b4449849ddbbd (diff) | |
download | weechat-5a58b9204439fff4da9eeaa0d72e143a0990e8d2.zip |
xfer: fix code style and comments (issue #1171)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/xfer/xfer-dcc.c | 3 | ||||
-rw-r--r-- | src/plugins/xfer/xfer.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/xfer/xfer-dcc.c b/src/plugins/xfer/xfer-dcc.c index 3b9bdf5df..b2c5d8c67 100644 --- a/src/plugins/xfer/xfer-dcc.c +++ b/src/plugins/xfer/xfer-dcc.c @@ -347,9 +347,8 @@ xfer_dcc_recv_file_child (struct t_xfer *xfer) } /* set TCP_NODELAY to be more aggressive with acks */ - /* ignore error as transfer should still work if this fails */ flags = 1; - setsockopt(xfer->sock, IPPROTO_TCP, TCP_NODELAY, &flags, sizeof(flags)); + setsockopt (xfer->sock, IPPROTO_TCP, TCP_NODELAY, &flags, sizeof (flags)); /* connection is OK, change DCC status (inform parent process) */ xfer_network_write_pipe (xfer, XFER_STATUS_ACTIVE, diff --git a/src/plugins/xfer/xfer.h b/src/plugins/xfer/xfer.h index 5cdb2df47..f300663e6 100644 --- a/src/plugins/xfer/xfer.h +++ b/src/plugins/xfer/xfer.h @@ -156,7 +156,7 @@ struct t_xfer char *remote_nick_color; /* color name for remote nick */ /* (returned by IRC plugin) */ int fast_send; /* fast send file: does not wait ACK */ - int send_ack; /* send ack on file receive */ + int send_ack; /* send acks on file receive */ int blocksize; /* block size for sending file */ time_t start_time; /* time when xfer started */ time_t start_transfer; /* time when xfer transfer started */ |