aboutsummaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connection.c b/src/connection.c
index 3630f2c..d30da54 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -46,7 +46,7 @@ static char readbuf[4096];
static void fd_server_cb(struct ev_loop *loop, struct ev_io *w, int revents) {
connection *con = (connection*) w->data;
server *srv = con->srv;
-// GString s;
+/* GString s; */
UNUSED(loop);
if (revents & EV_READ) {
@@ -56,7 +56,7 @@ static void fd_server_cb(struct ev_loop *loop, struct ev_io *w, int revents) {
connection_close(con);
return;
}
-// log_raw("raw", TRUE, con->con_id, g_string_set_const(&s, readbuf, len));
+/* log_raw("raw", TRUE, con->con_id, g_string_set_const(&s, readbuf, len)); */
stream_append(srv, &con->s_client, readbuf, len);
if (con->da_server) {
con->da_server(con->ctx_server, readbuf, len);
@@ -74,7 +74,7 @@ static void fd_server_cb(struct ev_loop *loop, struct ev_io *w, int revents) {
static void fd_client_cb(struct ev_loop *loop, struct ev_io *w, int revents) {
connection *con = (connection*) w->data;
server *srv = con->srv;
-// GString s;
+/* GString s; */
UNUSED(loop);
if (!connection_connect(con)) return;
@@ -85,7 +85,7 @@ static void fd_client_cb(struct ev_loop *loop, struct ev_io *w, int revents) {
connection_close(con);
return;
}
-// log_raw("raw", FALSE, con->con_id, g_string_set_const(&s, readbuf, len));
+/* log_raw("raw", FALSE, con->con_id, g_string_set_const(&s, readbuf, len)); */
stream_append(srv, &con->s_server, readbuf, len);
if (con->da_client) {
con->da_client(con->ctx_client, readbuf, len);