ui: fix return type for VNC I/O functions to be ssize_t
commitfdd1ab6ad5c27a1564a1c73045908736b228458b
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 6 Aug 2015 14:35:55 +0000 (6 15:35 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 15 Sep 2015 14:07:44 +0000 (15 15:07 +0100)
tree5fbb7a901e6ff55c453ae983d575d06a59956754
parentd321e1e5268103af616ec4c623c6326c3f7c7bc7
ui: fix return type for VNC I/O functions to be ssize_t

Various VNC server I/O functions return 'long' and then
also pass this to a method accepting 'int'. All these
should be ssize_t to match the signature of read/write
APIs and thus avoid potential for integer truncation /
wraparound.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
ui/vnc.c
ui/vnc.h