comparison plugins/gaim-remote/remote.c @ 10124:b4efa002dad8

[gaim-migrate @ 11161] warnings -= 3; committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 19 Oct 2004 04:32:56 +0000
parents a38881ec9c0f
children 5976491e07a7
comparison
equal deleted inserted replaced
10123:1369e3ae9c9d 10124:b4efa002dad8
472 472
473 static gint 473 static gint
474 gaim_recv(GIOChannel *source, gchar *buf, gint len) 474 gaim_recv(GIOChannel *source, gchar *buf, gint len)
475 { 475 {
476 gint total = 0; 476 gint total = 0;
477 guint cur; 477 gsize cur;
478 478
479 GError *error = NULL; 479 GError *error = NULL;
480 480
481 while (total < len) { 481 while (total < len) {
482 if (g_io_channel_read_chars(source, buf + total, len - total, (gsize *) &cur, &error) != G_IO_STATUS_NORMAL) { 482 if (g_io_channel_read_chars(source, buf + total, len - total, &cur, &error) != G_IO_STATUS_NORMAL) {
483 if (error) 483 if (error)
484 g_error_free(error); 484 g_error_free(error);
485 return -1; 485 return -1;
486 } 486 }
487 if (cur == 0) 487 if (cur == 0)