Blame SOURCES/libnice-0.1.14-tests-i686.patch

5f17a8
From 3f8364b41207d8c26d3d3be518a7d9ebf4243b92 Mon Sep 17 00:00:00 2001
5f17a8
From: Kamil Dudka <kdudka@redhat.com>
5f17a8
Date: Fri, 9 Feb 2018 18:01:57 +0100
5f17a8
Subject: [PATCH] tests: make them compile on i686
5f17a8
5f17a8
---
5f17a8
 tests/test-pseudotcp-fuzzy.c | 4 ++--
5f17a8
 tests/test-pseudotcp.c       | 2 +-
5f17a8
 2 files changed, 3 insertions(+), 3 deletions(-)
5f17a8
5f17a8
diff --git a/tests/test-pseudotcp-fuzzy.c b/tests/test-pseudotcp-fuzzy.c
5f17a8
index 4a714e6..030c03f 100644
5f17a8
--- a/tests/test-pseudotcp-fuzzy.c
5f17a8
+++ b/tests/test-pseudotcp-fuzzy.c
5f17a8
@@ -129,7 +129,7 @@ write_to_sock (PseudoTcpSocket *sock)
5f17a8
       total += wlen;
5f17a8
       total_read += wlen;
5f17a8
       if (wlen < (gint) len) {
5f17a8
-        g_debug ("seeking  %ld from %lu", wlen - len, ftell (in));
5f17a8
+        g_debug ("seeking  %ld from %lu", (long) wlen - len, ftell (in));
5f17a8
         fseek (in, wlen - len, SEEK_CUR);
5f17a8
         g_assert (!feof (in));
5f17a8
         g_debug ("Socket queue full after %d bytes written", total);
5f17a8
@@ -355,7 +355,7 @@ static void adjust_clock (PseudoTcpSocket *sock)
5f17a8
 
5f17a8
   if (pseudo_tcp_socket_get_next_clock (sock, &timeout)) {
5f17a8
     timeout -= g_get_monotonic_time () / 1000;
5f17a8
-    g_debug ("Socket %p: Adjusting clock to %ld ms", sock, timeout);
5f17a8
+    g_debug ("Socket %p: Adjusting clock to %ld ms", sock, (long) timeout);
5f17a8
     if (sock == left) {
5f17a8
       if (left_clock != 0)
5f17a8
          g_source_remove (left_clock);
5f17a8
diff --git a/tests/test-pseudotcp.c b/tests/test-pseudotcp.c
5f17a8
index 1a8391a..584a0d0 100644
5f17a8
--- a/tests/test-pseudotcp.c
5f17a8
+++ b/tests/test-pseudotcp.c
5f17a8
@@ -81,7 +81,7 @@ static void write_to_sock (PseudoTcpSocket *sock)
5f17a8
       total += wlen;
5f17a8
       total_read += wlen;
5f17a8
       if (wlen < (gint) len) {
5f17a8
-        g_debug ("seeking  %ld from %lu", wlen - len, ftell (in));
5f17a8
+        g_debug ("seeking  %ld from %lu", (long) wlen - len, ftell (in));
5f17a8
         fseek (in, wlen - len, SEEK_CUR);
5f17a8
         g_assert (!feof (in));
5f17a8
         g_debug ("Socket queue full after %d bytes written", total);
5f17a8
-- 
5f17a8
2.13.6
5f17a8