From 3cfe33705d53c04c8dcb6c80e35b60d370b5b0a4 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Aug 2012 13:34:19 -0400 Subject: don't mix error codes and byte counts --- response.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/response.c b/response.c index 6eb748e..f35284d 100644 --- a/response.c +++ b/response.c @@ -77,12 +77,7 @@ gboolean cbClientInput(gpointer data, gpointer additional) //write output to client static gssize writeOutput(GPollableOutputStream* stream, gchar* data, gssize size) { - gssize what=0; - what=g_pollable_output_stream_write_nonblocking(stream, data, size, NULL, NULL); - if(what < 0 || what == G_IO_ERROR_WOULD_BLOCK) { - return -1; - } - return what; + return g_pollable_output_stream_write_nonblocking(stream, data, size, NULL, NULL); } //initialize the signals -- cgit