mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
use gsize instead of int where appropriate (64-bit cleanliness fix)
Sun Sep 29 12:15:44 2002 Manish Singh <yosh@gimp.org> * tests/mainloop-test.c: use gsize instead of int where appropriate (64-bit cleanliness fix)
This commit is contained in:
committed by
Manish Singh
parent
dd373b4831
commit
f92ba4ece8
@@ -54,10 +54,10 @@ struct _TestData
|
||||
static void cleanup_crawlers (GMainContext *context);
|
||||
|
||||
gboolean
|
||||
read_all (GIOChannel *channel, char *buf, int len)
|
||||
read_all (GIOChannel *channel, char *buf, gsize len)
|
||||
{
|
||||
int bytes_read = 0;
|
||||
int count;
|
||||
gsize bytes_read = 0;
|
||||
gsize count;
|
||||
GIOError err;
|
||||
|
||||
while (bytes_read < len)
|
||||
@@ -78,10 +78,10 @@ read_all (GIOChannel *channel, char *buf, int len)
|
||||
}
|
||||
|
||||
gboolean
|
||||
write_all (GIOChannel *channel, char *buf, int len)
|
||||
write_all (GIOChannel *channel, char *buf, gsize len)
|
||||
{
|
||||
int bytes_written = 0;
|
||||
int count;
|
||||
gsize bytes_written = 0;
|
||||
gsize count;
|
||||
GIOError err;
|
||||
|
||||
while (bytes_written < len)
|
||||
|
Reference in New Issue
Block a user