summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer-network.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-18 11:13:23 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-18 11:13:23 +0100
commit4d1fdfade0cfb51e9ff680861e3333bd2b24173a (patch)
tree39ce7b5d276134eb5de1625b0c4206d4c09d709e /src/plugins/xfer/xfer-network.c
parente263a847da839253e346fa3843aaf7cb90199f01 (diff)
downloadweechat-4d1fdfade0cfb51e9ff680861e3333bd2b24173a.zip
Give file descriptor to callback of hook_fd
Diffstat (limited to 'src/plugins/xfer/xfer-network.c')
-rw-r--r--src/plugins/xfer/xfer-network.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/xfer/xfer-network.c b/src/plugins/xfer/xfer-network.c
index c38c29a7b..e5fe700c4 100644
--- a/src/plugins/xfer/xfer-network.c
+++ b/src/plugins/xfer/xfer-network.c
@@ -85,13 +85,16 @@ xfer_network_write_pipe (struct t_xfer *xfer, int status, int error)
*/
int
-xfer_network_child_read_cb (void *arg_xfer)
+xfer_network_child_read_cb (void *arg_xfer, int fd)
{
struct t_xfer *xfer;
char bufpipe[1 + 1 + 12 + 1];
int num_read;
char *error;
+ /* make C compiler happy */
+ (void) fd;
+
xfer = (struct t_xfer *)arg_xfer;
num_read = read (xfer->child_read, bufpipe, sizeof (bufpipe));
@@ -305,13 +308,16 @@ xfer_network_child_kill (struct t_xfer *xfer)
*/
int
-xfer_network_fd_cb (void *arg_xfer)
+xfer_network_fd_cb (void *arg_xfer, int fd)
{
struct t_xfer *xfer;
int sock;
struct sockaddr_in addr;
socklen_t length;
+ /* make C compiler happy */
+ (void) fd;
+
xfer = (struct t_xfer *)arg_xfer;
if (xfer->status == XFER_STATUS_CONNECTING)