From f92ba4ece80477bbac21e409dbb3beca5ba21fb6 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sun, 29 Sep 2002 19:16:31 +0000 Subject: [PATCH] use gsize instead of int where appropriate (64-bit cleanliness fix) Sun Sep 29 12:15:44 2002 Manish Singh * tests/mainloop-test.c: use gsize instead of int where appropriate (64-bit cleanliness fix) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ tests/mainloop-test.c | 12 ++++++------ 8 files changed, 41 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 25b33d4..ea4012c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 29 12:15:44 2002 Manish Singh + + * tests/mainloop-test.c: use gsize instead of int where appropriate + (64-bit cleanliness fix) + 2002-09-29 Tor Lillqvist * configure.in: Instead of forcing -fnative-struct into CFLAGS diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 25b33d4..ea4012c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Sun Sep 29 12:15:44 2002 Manish Singh + + * tests/mainloop-test.c: use gsize instead of int where appropriate + (64-bit cleanliness fix) + 2002-09-29 Tor Lillqvist * configure.in: Instead of forcing -fnative-struct into CFLAGS diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 25b33d4..ea4012c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Sun Sep 29 12:15:44 2002 Manish Singh + + * tests/mainloop-test.c: use gsize instead of int where appropriate + (64-bit cleanliness fix) + 2002-09-29 Tor Lillqvist * configure.in: Instead of forcing -fnative-struct into CFLAGS diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 25b33d4..ea4012c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Sun Sep 29 12:15:44 2002 Manish Singh + + * tests/mainloop-test.c: use gsize instead of int where appropriate + (64-bit cleanliness fix) + 2002-09-29 Tor Lillqvist * configure.in: Instead of forcing -fnative-struct into CFLAGS diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 25b33d4..ea4012c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Sun Sep 29 12:15:44 2002 Manish Singh + + * tests/mainloop-test.c: use gsize instead of int where appropriate + (64-bit cleanliness fix) + 2002-09-29 Tor Lillqvist * configure.in: Instead of forcing -fnative-struct into CFLAGS diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 25b33d4..ea4012c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Sun Sep 29 12:15:44 2002 Manish Singh + + * tests/mainloop-test.c: use gsize instead of int where appropriate + (64-bit cleanliness fix) + 2002-09-29 Tor Lillqvist * configure.in: Instead of forcing -fnative-struct into CFLAGS diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 25b33d4..ea4012c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Sun Sep 29 12:15:44 2002 Manish Singh + + * tests/mainloop-test.c: use gsize instead of int where appropriate + (64-bit cleanliness fix) + 2002-09-29 Tor Lillqvist * configure.in: Instead of forcing -fnative-struct into CFLAGS diff --git a/tests/mainloop-test.c b/tests/mainloop-test.c index ad81842..d407c53 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) -- 2.7.4