# HG changeset patch
# User Mike Becker <universe@uap-core.de>
# Date 1352058612 -3600
# Node ID 990734f548efa6100e1a602f6d42bfe3c9880704
# Parent  dc8bade7f2a3cdd997a185c85dc9ca129b2b603d
fixed some compiler warnings

diff -r dc8bade7f2a3 -r 990734f548ef test/logging_tests.c
--- a/test/logging_tests.c	Fri Oct 12 12:46:54 2012 +0200
+++ b/test/logging_tests.c	Sun Nov 04 20:50:12 2012 +0100
@@ -15,9 +15,9 @@
     ucx_logger_trace(logger, ST("[TRACE:] dont log this!\n"));
     ucx_logger_error(logger, ST("[ERROR:] error!\n"));
     fseek(stream, 0, SEEK_SET);
-    fread(buffer, 1, 100, stream);
+    int r = fread(buffer, 1, 100, stream);
 
-    UCX_TEST_ASSERT(strncmp(buffer,
+    UCX_TEST_ASSERT(r == 33 && strncmp(buffer,
             "[INFO:] allright\n[ERROR:] error!\n", 33) == 0, "incorrect logs");
 
     UCX_TEST_END
diff -r dc8bade7f2a3 -r 990734f548ef ucx/mempool.c
--- a/ucx/mempool.c	Fri Oct 12 12:46:54 2012 +0200
+++ b/ucx/mempool.c	Sun Nov 04 20:50:12 2012 +0100
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
+#include <inttypes.h>
 
 #include "mempool.h"
 
@@ -84,7 +85,8 @@
                 return newm + sizeof(ucx_destructor);
             }
         }
-        fprintf(stderr, "FATAL: %8x not in mpool %8x\n", ptr, pool);
+        fprintf(stderr, "FATAL: 0x%08"PRIxPTR" not in mpool 0x%08"PRIxPTR"\n",
+          (intptr_t)ptr, (intptr_t)pool);
         exit(1);
     } else {
         return newm + sizeof(ucx_destructor);