Daniel P. Berrange 30b80fd526 ui: mix misleading comments & return types of VNC I/O helper methods
While the QIOChannel APIs for reading/writing data return ssize_t, with negative
value indicating an error, the VNC code passes this return value through the
vnc_client_io_error() method. This detects the error condition, disconnects the
client and returns 0 to indicate error. Thus all the VNC helper methods should
return size_t (unsigned), and misleading comments which refer to the possibility
of negative return values need fixing.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20171218191228.31018-14-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2018-01-12 13:48:54 +01:00
..
2017-10-17 10:25:42 +02:00
2017-11-10 14:27:29 +01:00
2017-11-10 11:06:43 +01:00
2017-07-27 14:23:09 +02:00
2017-08-31 12:29:07 +02:00
2017-09-19 14:09:34 +02:00
2017-09-13 10:15:43 +02:00
2016-06-03 08:23:26 +02:00
2016-02-04 17:01:04 +00:00
2014-09-16 08:07:05 +02:00
2017-10-17 10:25:42 +02:00
2017-06-22 11:34:39 +01:00
2017-07-27 14:23:09 +02:00
2016-02-04 17:01:04 +00:00
2017-08-31 12:29:07 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2017-05-12 12:34:31 +02:00
2016-02-23 12:43:05 +00:00
2016-02-04 17:01:04 +00:00