Replace all instances of ssize_t with gssize

ssize_t is supported widely, but not universally, so use gssize instead.
Currently only one piece of code actually *needs* this change to be compilable
with MSVC, the rest are mostly in *nix parts of the code, but these are changed
too, for symmetry.

https://bugzilla.gnome.org/show_bug.cgi?id=788180
This commit is contained in:
Руслан Ижбулатов
2017-10-10 11:59:14 +00:00
committed by Philip Withnall
parent 6abdc06da6
commit 4a77eb16ce
6 changed files with 13 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ int
read_all (int fd, char *buf, int len)
{
size_t bytes_read = 0;
ssize_t count;
gssize count;
while (bytes_read < len)
{
@@ -58,7 +58,7 @@ int
write_all (int fd, char *buf, int len)
{
size_t bytes_written = 0;
ssize_t count;
gssize count;
while (bytes_written < len)
{