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

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