diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-18 11:13:23 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-18 11:13:23 +0100 |
commit | 4d1fdfade0cfb51e9ff680861e3333bd2b24173a (patch) | |
tree | 39ce7b5d276134eb5de1625b0c4206d4c09d709e /src/plugins/relay/relay-client.c | |
parent | e263a847da839253e346fa3843aaf7cb90199f01 (diff) | |
download | weechat-4d1fdfade0cfb51e9ff680861e3333bd2b24173a.zip |
Give file descriptor to callback of hook_fd
Diffstat (limited to 'src/plugins/relay/relay-client.c')
-rw-r--r-- | src/plugins/relay/relay-client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/relay/relay-client.c b/src/plugins/relay/relay-client.c index 19c5538a9..aa465b088 100644 --- a/src/plugins/relay/relay-client.c +++ b/src/plugins/relay/relay-client.c @@ -203,13 +203,16 @@ relay_client_send_infolist (struct t_relay_client *client, */ int -relay_client_recv_cb (void *arg_client) +relay_client_recv_cb (void *arg_client, int fd) { struct t_relay_client *client; static char buffer[4096 + 2]; struct t_infolist *infolist; int num_read; + /* make C compiler happy */ + (void) fd; + client = (struct t_relay_client *)arg_client; num_read = recv (client->sock, buffer, sizeof (buffer) - 1, 0); |