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

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