pkgsrc/net/gnet1/patches/patch-ae
2003-04-15 11:49:01 +00:00

28 lines
616 B
Text

$NetBSD: patch-ae,v 1.1.1.1 2003/04/15 11:49:02 wiz Exp $
--- examples/hfetch.c.orig Thu Sep 26 13:58:59 2002
+++ examples/hfetch.c Wed Feb 12 10:06:35 2003
@@ -115,4 +115,5 @@
GIOError error;
guint n;
+ gsize n2;
@@ -143,5 +144,5 @@
while (1)
{
- error = g_io_channel_read(iochannel, buffer, sizeof(buffer), &n);
+ error = g_io_channel_read(iochannel, buffer, sizeof(buffer), &n2);
if (error != G_IO_ERROR_NONE)
{
@@ -150,8 +151,8 @@
}
- if (n == 0)
+ if (n2 == 0)
break;
- fwrite(buffer, n, 1, stdout);
+ fwrite(buffer, n2, 1, stdout);
}