summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorCamiel Dobbelaar <camield@cvs.openbsd.org>2006-12-30 13:24:01 +0000
committerCamiel Dobbelaar <camield@cvs.openbsd.org>2006-12-30 13:24:01 +0000
commitf51f08a9336b266bedae3ce9c6dc17ad1c8f778b (patch)
tree2cfa553befb8e5e4932c2d362b350fef35d05512 /usr.sbin
parentd1fcacce7445d9a96ee99d70ee2e483f47002a43 (diff)
Remove stub write callback functions now that libevent allows them to be NULL.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ftp-proxy/ftp-proxy.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/usr.sbin/ftp-proxy/ftp-proxy.c b/usr.sbin/ftp-proxy/ftp-proxy.c
index 34f73c1880a..99e417472fb 100644
--- a/usr.sbin/ftp-proxy/ftp-proxy.c
+++ b/usr.sbin/ftp-proxy/ftp-proxy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp-proxy.c,v 1.12 2006/12/30 13:01:54 camield Exp $ */
+/* $OpenBSD: ftp-proxy.c,v 1.13 2006/12/30 13:24:00 camield Exp $ */
/*
* Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl>
@@ -89,7 +89,6 @@ int client_parse(struct session *s);
int client_parse_anon(struct session *s);
int client_parse_cmd(struct session *s);
void client_read(struct bufferevent *, void *);
-void client_write(struct bufferevent *, void *);
int drop_privs(void);
void end_session(struct session *);
int exit_daemon(void);
@@ -104,7 +103,6 @@ void proxy_reply(int, struct sockaddr *, u_int16_t);
void server_error(struct bufferevent *, short, void *);
int server_parse(struct session *s);
void server_read(struct bufferevent *, void *);
-void server_write(struct bufferevent *, void *);
const char *sock_ntop(struct sockaddr *);
void usage(void);
@@ -246,12 +244,6 @@ client_read(struct bufferevent *bufev, void *arg)
} while (read == buf_avail);
}
-void
-client_write(struct bufferevent *bufev, void *arg)
-{
- return;
-}
-
int
drop_privs(void)
{
@@ -484,8 +476,8 @@ handle_connection(const int listen_fd, short event, void *ev)
/*
* Setup buffered events.
*/
- s->client_bufev = bufferevent_new(s->client_fd, &client_read,
- &client_write, &client_error, s);
+ s->client_bufev = bufferevent_new(s->client_fd, &client_read, NULL,
+ &client_error, s);
if (s->client_bufev == NULL) {
logmsg(LOG_CRIT, "#%d bufferevent_new client failed", s->id);
goto fail;
@@ -493,8 +485,8 @@ handle_connection(const int listen_fd, short event, void *ev)
bufferevent_settimeout(s->client_bufev, timeout, 0);
bufferevent_enable(s->client_bufev, EV_READ | EV_TIMEOUT);
- s->server_bufev = bufferevent_new(s->server_fd, &server_read,
- &server_write, &server_error, s);
+ s->server_bufev = bufferevent_new(s->server_fd, &server_read, NULL,
+ &server_error, s);
if (s->server_bufev == NULL) {
logmsg(LOG_CRIT, "#%d bufferevent_new server failed", s->id);
goto fail;
@@ -1065,12 +1057,6 @@ server_read(struct bufferevent *bufev, void *arg)
} while (read == buf_avail);
}
-void
-server_write(struct bufferevent *bufev, void *arg)
-{
- return;
-}
-
const char *
sock_ntop(struct sockaddr *sa)
{