fix compiler warnings
authorChristian Grothoff <christian@grothoff.org>
Fri, 6 May 2016 15:21:51 +0000 (15:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 6 May 2016 15:21:51 +0000 (15:21 +0000)
src/psyc/gnunet-service-psyc.c
src/psyc/test_psyc.c

index 3edc0295c6694d8c74a2610cd690b8671b6d98b6..bd81dabb1fa3b37a6911ce7626f1ddb80536b32e 100644 (file)
@@ -2265,7 +2265,7 @@ client_recv_psyc_message (void *cls, struct GNUNET_SERVER_Client *client,
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 "%p Message payload too large: %u < %u.\n",
                 chn,
-                GNUNET_MULTICAST_FRAGMENT_MAX_PAYLOAD,
+                (unsigned int) GNUNET_MULTICAST_FRAGMENT_MAX_PAYLOAD,
                 (unsigned int) (size - sizeof (*msg)));
     GNUNET_break (0);
     transmit_cancel (chn, client);
@@ -2310,7 +2310,7 @@ store_recv_membership_store_result (void *cls,
 {
   struct Operation *op = cls;
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "%p GNUNET_PSYCSTORE_membership_store() returned %" PRId64 " (%.s)\n",
+              "%p GNUNET_PSYCSTORE_membership_store() returned %" PRId64 " (%.*s)\n",
               op->chn,
               result,
               (int) err_msg_size,
index 5ea83dd63a7b5e77868ac84b1cea00f1e5e9bfd2..402b17b96fbd6bb836f918ae46bb753361a33b1d 100644 (file)
@@ -336,7 +336,10 @@ state_get_var (void *cls, const struct GNUNET_MessageHeader *mod,
                uint32_t value_size, uint32_t full_value_size)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Got state var: %s\n%.*s\n", name, value_size, value);
+              "Got state var: %s\n%.*s\n",
+              name,
+              (int) value_size,
+              (const char *) value);
 }
 
 
@@ -348,7 +351,9 @@ slave_state_get_prefix_result (void *cls, int64_t result,
 {
   GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
               "slave_state_get_prefix:\t%" PRId64 " (%.s)\n",
-              result, err_msg_size, err_msg);
+              result,
+              (int) err_msg_size,
+              (const char *) err_msg);
   // FIXME: GNUNET_assert (2 == result);
   end ();
 }
@@ -442,7 +447,9 @@ slave_history_replay_result (void *cls, int64_t result,
 {
   GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
               "slave_history_replay:\t%" PRId64 " (%.*s)\n",
-              result, err_msg_size, err_msg);
+              result,
+              (int) err_msg_size,
+              (const char *) err_msg);
   GNUNET_assert (9 == result);
 
   master_state_get ();
@@ -470,7 +477,9 @@ master_history_replay_result (void *cls, int64_t result,
 {
   GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
               "master_history_replay:\t%" PRId64 " (%.*s)\n",
-              result, err_msg_size, err_msg);
+              result,
+              (int) err_msg_size,
+              (const char *) err_msg);
   GNUNET_assert (9 == result);
 
   slave_history_replay ();
@@ -498,7 +507,9 @@ slave_history_replay_latest_result (void *cls, int64_t result,
 {
   GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
               "slave_history_replay_latest:\t%" PRId64 " (%.*s)\n",
-              result, err_msg_size, err_msg);
+              result,
+              (int) err_msg_size,
+              (const char *) err_msg);
   GNUNET_assert (9 == result);
 
   master_history_replay ();