X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=blobdiff_plain;f=null.c;h=64cb074663f4e96c81c538b2f16cf62d7a448bb6;hp=1ad81c933303712d890942871bafd80840194910;hb=873a90517d2fa0538a7ce07c139a53f4cc42a61c;hpb=0139cf387facfd85cb9fbc536b1c010679d2359a diff --git a/null.c b/null.c index 1ad81c9..64cb074 100644 --- a/null.c +++ b/null.c @@ -36,10 +36,6 @@ static void null_close (net_hook_t* hook) g_slice_free (net_hook_t, hook); } -static void null_write (net_hook_t* hook) -{ -} - static void null_read (net_hook_t* hook, gchar* buffer, size_t len) { hc_conn_write (hook->peer->conn, buffer, len); @@ -58,7 +54,6 @@ static net_hook_t* null_server_hook_new (net_hook_t* client_hook, char *server) hook->server = TRUE; hook->connect = null_connect; hook->close = null_close; - hook->write = null_write; hook->read = null_read; hook->data = NULL; hook->conn = hc_conn_new (hc_tcp_connect (server, "110"), nethook_event, hook); @@ -74,7 +69,6 @@ net_hook_t* null_hook_new (HCConn* conn, char *server) hook->server = FALSE; hook->connect = null_connect; hook->close = null_close; - hook->write = null_write; hook->read = null_read; hook->data = server; hook->peer = null_server_hook_new (hook, server);