pkgsrc/net/gnet/patches/patch-ad
wiz 5217c05abb Update to 2.0.0.
* DNS bug fixes
* FreeBSD compile fixes and UDP send bug fix
* New functions: gnet_{udp,mcast}_socket_get_local_inetaddr
* Build improvements: library is now named libgnet-MAJOR.MINOR,
    favors GLib 2 over GLib 1.2
* New Base64 module (by Alfred Reibenschuh)
* Major documentation improvements
* Some minor API renaming in Inetaddr and TcpSocket
* IPv6 support
* Server, Conn, URI, and Unix modules are no longer "experimental"
* Header files are now in gnet-2.0
* gnet-config removed.  Use pkg-config.
* Many API changes
* gnet_server_new() changed, but the prototype is the same.  Make sure
        you are using the new version correctly.
2003-04-15 12:19:17 +00:00

22 lines
709 B
Text

$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);