diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 2012-08-01 13:34:19 -0400 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 2012-08-01 13:34:19 -0400 |
commit | 3cfe33705d53c04c8dcb6c80e35b60d370b5b0a4 (patch) | |
tree | ad8bfa48ca89afc67a1286f1407d8c2014dcae82 /response.c | |
parent | ef779d4e445b7c92fceb61cce35730720407d46e (diff) |
don't mix error codes and byte counts
Diffstat (limited to 'response.c')
-rw-r--r-- | response.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |