blob: 82b995a99caf9ef4973fee7b178c66cc142fba0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ad,v 1.2 2003/04/15 12:19:19 wiz Exp $
--- examples/echoserver-unix.c.orig Mon Feb 3 20:01:56 2003
+++ examples/echoserver-unix.c
@@ -228,7 +228,7 @@ async_client_iofunc(GIOChannel *iochanne
/* Check for data to be read (or if the socket was closed) */
if (c & G_IO_IN) {
GIOError e;
- guint bytes_read;
+ gsize bytes_read;
/* Read the data into our buffer */
e = g_io_channel_read(iochannel,
@@ -259,7 +259,7 @@ async_client_iofunc(GIOChannel *iochanne
}
if (c & G_IO_OUT) {
GIOError e;
- guint bytes_written;
+ gsize bytes_written;
/* Write the data out */
e = g_io_channel_write(iochannel, cs->buffer, cs->n,
&bytes_written);
|