mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
Consistently use gsize rather than size_t. (#333310, Morten Welinder)
2006-12-27 Matthias Clasen <mclasen@redhat.com> * glib/gconvert.[hc]: * glib/gfileutils.c: * glib/giochannel.c: * glib/goption.c: * glib/gspawn.c: * glib/gunicollate.c: * glib/gutils.c: * tests/timeloop-basic.c: Consistently use gsize rather than size_t. (#333310, Morten Welinder)
This commit is contained in:
committed by
Matthias Clasen
parent
f678ea9725
commit
98d552e0cd
@@ -33,8 +33,8 @@ my_pipe (int *fds)
|
||||
int
|
||||
read_all (int fd, char *buf, int len)
|
||||
{
|
||||
size_t bytes_read = 0;
|
||||
ssize_t count;
|
||||
gsize bytes_read = 0;
|
||||
gssize count;
|
||||
|
||||
while (bytes_read < len)
|
||||
{
|
||||
@@ -56,8 +56,8 @@ read_all (int fd, char *buf, int len)
|
||||
int
|
||||
write_all (int fd, char *buf, int len)
|
||||
{
|
||||
size_t bytes_written = 0;
|
||||
ssize_t count;
|
||||
gsize bytes_written = 0;
|
||||
gssize count;
|
||||
|
||||
while (bytes_written < len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user