summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2005-05-25 23:11:50 +0000
committerManish Singh <yosh@src.gnome.org>2005-05-25 23:11:50 +0000
commitbc6b796d83f1022c6335c6360fc557d531ac0415 (patch)
tree32030fbb6450b90b091134910f1989d4d34bcc2b /gobject
parent44bc10c44f1058a508dda524e28ab33877790086 (diff)
downloadpygobject-bc6b796d83f1022c6335c6360fc557d531ac0415.tar.gz
pygobject-bc6b796d83f1022c6335c6360fc557d531ac0415.tar.xz
pygobject-bc6b796d83f1022c6335c6360fc557d531ac0415.zip
Pass gsize to GIOChannel functions that expect them.
2005-05-25 Manish Singh <yosh@gimp.org> * gobject/pygiochannel.c: Pass gsize to GIOChannel functions that expect them.
Diffstat (limited to 'gobject')
-rw-r--r--gobject/pygiochannel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/pygiochannel.c b/gobject/pygiochannel.c
index bd1ffe1..c6e6c52 100644
--- a/gobject/pygiochannel.c
+++ b/gobject/pygiochannel.c
@@ -193,7 +193,7 @@ py_io_channel_read_chars(PyGIOChannel* self, PyObject *args, PyObject *kwargs)
static char *kwlist[] = { "max_count", NULL };
int max_count = -1;
PyObject* ret_obj = NULL;
- int total_read = 0;
+ gsize total_read = 0;
GError* error = NULL;
GIOStatus status = G_IO_STATUS_NORMAL;
@@ -205,7 +205,7 @@ py_io_channel_read_chars(PyGIOChannel* self, PyObject *args, PyObject *kwargs)
while (status == G_IO_STATUS_NORMAL
&& (max_count == -1 || total_read < max_count)) {
- int single_read;
+ gsize single_read;
char* buf;
gsize buf_size;
@@ -256,7 +256,7 @@ py_io_channel_write_chars(PyGIOChannel* self, PyObject *args, PyObject *kwargs)
static char *kwlist[] = { "buf", NULL };
const char* buf;
int buf_len;
- int count;
+ gsize count;
GError* error = NULL;
GIOStatus status;
@@ -279,7 +279,7 @@ py_io_channel_write_lines(PyGIOChannel* self, PyObject *args, PyObject *kwargs)
static char *kwlist[] = { "lines", NULL };
char *buf;
int buf_len;
- int count;
+ gsize count;
GError* error = NULL;
GIOStatus status;
PyObject *iter, *value, *pylines;