[Pkg-telepathy-commits] [libnice] 53/265: tests: Use right type when taking to stdio f*() C APIs
Simon McVittie
smcv at debian.org
Wed May 14 12:04:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 1502c8dbb67e895e97af8d3a8de9292cdccb40e1
Author: Olivier CrĂȘte <olivier.crete at collabora.com>
Date: Mon Jan 6 18:31:46 2014 -0500
tests: Use right type when taking to stdio f*() C APIs
---
tests/test-pseudotcp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/test-pseudotcp.c b/tests/test-pseudotcp.c
index 1d8da99..8b7c5ae 100644
--- a/tests/test-pseudotcp.c
+++ b/tests/test-pseudotcp.c
@@ -60,8 +60,8 @@ static void adjust_clock (PseudoTcpSocket *sock);
static void write_to_sock (PseudoTcpSocket *sock)
{
gchar buf[1024];
- guint len;
- guint wlen;
+ gsize len;
+ gint wlen;
guint total = 0;
while (TRUE) {
@@ -72,10 +72,10 @@ static void write_to_sock (PseudoTcpSocket *sock)
break;
} else {
wlen = pseudo_tcp_socket_send (sock, buf, len);
- g_debug ("Sending %d bytes : %d", len, wlen);
+ g_debug ("Sending %" G_GSIZE_FORMAT " bytes : %d", len, wlen);
total += wlen;
total_read += wlen;
- if (wlen < len) {
+ if (wlen < (gint) len) {
fseek (in, wlen - len, SEEK_CUR);
g_debug ("Socket queue full after %d bytes written", total);
break;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list