summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2012-04-26 10:15:51 +0200
committerLinus Nordberg <linus@nordu.net>2012-04-26 10:15:51 +0200
commitd4f20d38dc7b65a5d3e7fffa40c5333fdc656584 (patch)
treed7bdd949d985ed9e719a01271164006d285ddab8 /lib
parente6b234bb547479f8862badeee58d1b1415a2439d (diff)
Use existing temporary variable conn.
Diffstat (limited to 'lib')
-rw-r--r--lib/tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tcp.c b/lib/tcp.c
index 77365c0..f98e971 100644
--- a/lib/tcp.c
+++ b/lib/tcp.c
@@ -189,7 +189,7 @@ tcp_event_cb (struct bufferevent *bev, short events, void *user_data)
{
rs_debug (("%s: %p times out on %s\n", __func__, p,
(events & BEV_EVENT_READING) ? "read" : "write"));
- rs_err_conn_push_fl (pkt->conn, RSE_TIMEOUT_IO, __FILE__, __LINE__, NULL);
+ rs_err_conn_push_fl (conn, RSE_TIMEOUT_IO, __FILE__, __LINE__, NULL);
}
else if (events & BEV_EVENT_ERROR)
{
@@ -197,13 +197,13 @@ tcp_event_cb (struct bufferevent *bev, short events, void *user_data)
if (sockerr == 0) /* FIXME: True that errno == 0 means closed? */
{
event_on_disconnect (conn);
- rs_err_conn_push_fl (pkt->conn, RSE_DISCO, __FILE__, __LINE__, NULL);
+ rs_err_conn_push_fl (conn, RSE_DISCO, __FILE__, __LINE__, NULL);
}
else
{
rs_debug (("%s: %d: %d (%s)\n", __func__, conn->fd, sockerr,
evutil_socket_error_to_string (sockerr)));
- rs_err_conn_push_fl (pkt->conn, RSE_SOCKERR, __FILE__, __LINE__,
+ rs_err_conn_push_fl (conn, RSE_SOCKERR, __FILE__, __LINE__,
"%d: %d (%s)", conn->fd, sockerr,
evutil_socket_error_to_string (sockerr));
}
@@ -216,7 +216,7 @@ tcp_event_cb (struct bufferevent *bev, short events, void *user_data)
{
rs_debug (("%s: openssl error: %s\n", __func__,
ERR_error_string (tlserr, NULL)));
- rs_err_conn_push_fl (pkt->conn, RSE_SSLERR, __FILE__, __LINE__,
+ rs_err_conn_push_fl (conn, RSE_SSLERR, __FILE__, __LINE__,
ERR_error_string (tlserr, NULL));
}
}