Commit ac1080ee authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

use gsize instead of int where appropriate (64-bit cleanliness fix).

Tue Oct 15 15:28:47 2002  Manish Singh  <yosh@gimp.org>

        * tests/iochannel-test.c: use gsize instead of int where appropriate
        (64-bit cleanliness fix). Removed leftover line_term cruft.
parent a821e2c4
Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
* tests/iochannel-test.c: use gsize instead of int where appropriate
(64-bit cleanliness fix). Removed leftover line_term cruft.
Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
* gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
......
Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
* tests/iochannel-test.c: use gsize instead of int where appropriate
(64-bit cleanliness fix). Removed leftover line_term cruft.
Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
* gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
......
Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
* tests/iochannel-test.c: use gsize instead of int where appropriate
(64-bit cleanliness fix). Removed leftover line_term cruft.
Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
* gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
......
Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
* tests/iochannel-test.c: use gsize instead of int where appropriate
(64-bit cleanliness fix). Removed leftover line_term cruft.
Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
* gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
......
Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
* tests/iochannel-test.c: use gsize instead of int where appropriate
(64-bit cleanliness fix). Removed leftover line_term cruft.
Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
* gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
......
Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
* tests/iochannel-test.c: use gsize instead of int where appropriate
(64-bit cleanliness fix). Removed leftover line_term cruft.
Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
* gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
......
Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
* tests/iochannel-test.c: use gsize instead of int where appropriate
(64-bit cleanliness fix). Removed leftover line_term cruft.
Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
* gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
......
......@@ -18,9 +18,11 @@ gint main (gint argc, gchar * argv[])
GString *buffer;
char *filename;
char *srcdir = getenv ("srcdir");
gint rlength = 0, wlength = 0, length_out, line_term_len;
gint rlength = 0;
glong wlength = 0;
gsize length_out;
gboolean block;
const gchar encoding[] = "EUC-JP", line_term[] = "\n";
const gchar encoding[] = "EUC-JP";
GIOStatus status;
GIOFlags flags;
......@@ -69,7 +71,6 @@ gint main (gint argc, gchar * argv[])
else
g_print (" BLOCKING FALSE \n\n");
line_term_len = strlen (line_term);
buffer = g_string_sized_new (BUFFER_SIZE);
while (TRUE)
......@@ -123,7 +124,7 @@ gint main (gint argc, gchar * argv[])
gerr = NULL;
}
g_print ("read %d bytes, wrote %d bytes\n", rlength, wlength);
g_print ("read %d bytes, wrote %ld bytes\n", rlength, wlength);
g_io_channel_unref(gio_r);
g_io_channel_unref(gio_w);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment