summaryrefslogtreecommitdiff
path: root/tests/mainloop-test.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-09-29 19:16:31 +0000
committerManish Singh <yosh@src.gnome.org>2002-09-29 19:16:31 +0000
commitf92ba4ece80477bbac21e409dbb3beca5ba21fb6 (patch)
tree7cbad9cc9d0e0909d94742d02a22038b2478f96b /tests/mainloop-test.c
parentdd373b48310b9cb7dd9702aea3803eb0cb0de197 (diff)
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)
Diffstat (limited to 'tests/mainloop-test.c')
-rw-r--r--tests/mainloop-test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/mainloop-test.c b/tests/mainloop-test.c
index ad818425c..d407c530e 100644
--- a/tests/mainloop-test.c
+++ b/tests/mainloop-test.c
@@ -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)