summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>2012-08-01 13:34:19 -0400
committerroot <root@fedora-arm.domain.avtechpulse.com>2012-08-01 13:34:19 -0400
commit3cfe33705d53c04c8dcb6c80e35b60d370b5b0a4 (patch)
treead8bfa48ca89afc67a1286f1407d8c2014dcae82
parentef779d4e445b7c92fceb61cce35730720407d46e (diff)
don't mix error codes and byte counts
-rw-r--r--response.c7
1 files changed, 1 insertions, 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