[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix more warnings
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix more warnings |
Date: |
Fri, 16 Oct 2020 10:27:33 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 09c3455b2 -fix more warnings
09c3455b2 is described below
commit 09c3455b2c3dd01e52ac2dd9c62c41b3ebcf8028
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Fri Oct 16 10:20:32 2020 +0200
-fix more warnings
---
src/ats-tests/ats-testing-log.c | 4 ++--
src/datastore/datastore_api.c | 8 ++++----
src/dht/gnunet-service-dht_clients.c | 6 +++---
src/dht/gnunet-service-dht_datacache.c | 4 ++--
src/dht/gnunet-service-dht_neighbours.c | 4 ++--
src/dht/plugin_block_dht.c | 2 +-
src/my/my_query_helper.c | 8 ++++----
src/nse/gnunet-nse-profiler.c | 2 +-
src/testbed-logger/gnunet-service-testbed-logger.c | 2 +-
src/testbed/gnunet-service-testbed_cpustatus.c | 2 +-
src/testbed/testbed_api.c | 2 +-
src/testbed/testbed_api_topology.c | 6 +++---
src/transport/plugin_transport_http_client.c | 15 +++++++-------
src/transport/plugin_transport_http_common.c | 2 +-
src/transport/plugin_transport_http_server.c | 24 +++++++++++-----------
src/transport/plugin_transport_tcp.c | 12 +++++------
src/transport/plugin_transport_udp.c | 15 +++++++-------
src/transport/plugin_transport_unix.c | 4 ++--
src/transport/tcp_connection_legacy.c | 16 +++++++--------
src/transport/tcp_service_legacy.c | 2 +-
20 files changed, 70 insertions(+), 70 deletions(-)
diff --git a/src/ats-tests/ats-testing-log.c b/src/ats-tests/ats-testing-log.c
index 38094a438..955401dd8 100644
--- a/src/ats-tests/ats-testing-log.c
+++ b/src/ats-tests/ats-testing-log.c
@@ -575,7 +575,7 @@ GNUNET_ATS_TEST_logging_write_to_file (struct LoggingHandle
*l,
/* Assembling slave string */
GNUNET_asprintf (&data,
-
"%llu;%llu;%u;%u;%u;%u;%u;%u;%.3f;%u;%u;%u;%u;%u;%u;%u;%.3f;%.3f\n",
+
"%llu;%llu;%u;%u;%u;%u;%u;%u;%.3f;%u;%u;%llu;%u;%u;%u;%u;%.3f;%.3f\n",
(long long unsigned
int) cur_lt->timestamp.abs_value_us,
(long long unsigned
@@ -593,7 +593,7 @@ GNUNET_ATS_TEST_logging_write_to_file (struct LoggingHandle
*l,
(double) plt->app_rtt / 1000,
plt->bandwidth_in,
plt->bandwidth_out,
- plt->ats_delay,
+ plt->ats_delay.rel_value_us,
plt->ats_distance,
plt->ats_network_type,
plt->ats_utilization_out,
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c
index 4537f6efe..bd7a612ed 100644
--- a/src/datastore/datastore_api.c
+++ b/src/datastore/datastore_api.c
@@ -994,8 +994,8 @@ GNUNET_DATASTORE_put (struct GNUNET_DATASTORE_Handle *h,
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Asked to put %u bytes of data under key `%s' for %s\n",
- size,
+ "Asked to put %lu bytes of data under key `%s' for %s\n",
+ (unsigned long) size,
GNUNET_h2s (key),
GNUNET_STRINGS_relative_time_to_string (
GNUNET_TIME_absolute_get_remaining (expiration),
@@ -1205,8 +1205,8 @@ GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle
*h,
if (NULL == cont)
cont = &drop_status_cont;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Asked to remove %u bytes under key `%s'\n",
- size,
+ "Asked to remove %lu bytes under key `%s'\n",
+ (unsigned long) size,
GNUNET_h2s (key));
env = GNUNET_MQ_msg_extra (dm,
size,
diff --git a/src/dht/gnunet-service-dht_clients.c
b/src/dht/gnunet-service-dht_clients.c
index 1e44c1fad..5eb3115f4 100644
--- a/src/dht/gnunet-service-dht_clients.c
+++ b/src/dht/gnunet-service-dht_clients.c
@@ -488,8 +488,8 @@ handle_dht_local_put (void *cls,
GNUNET_h2s_full (&dht_msg->key));
/* give to local clients */
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Handling local PUT of %u-bytes for query %s\n",
- size - sizeof(struct GNUNET_DHT_ClientPutMessage),
+ "Handling local PUT of %lu-bytes for query %s\n",
+ (unsigned long) (size - sizeof(struct GNUNET_DHT_ClientPutMessage)),
GNUNET_h2s (&dht_msg->key));
GDS_CLIENTS_handle_reply (GNUNET_TIME_absolute_ntoh (dht_msg->expiration),
&dht_msg->key,
@@ -619,7 +619,7 @@ handle_dht_local_get (void *cls,
"Received GET request for %s from local client %p, xq: %.*s\n",
GNUNET_h2s (&get->key),
ch->client,
- xquery_size,
+ (int) xquery_size,
xquery);
LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG,
"CLIENT-GET %s\n",
diff --git a/src/dht/gnunet-service-dht_datacache.c
b/src/dht/gnunet-service-dht_datacache.c
index 41b7a3a2b..7eded2152 100644
--- a/src/dht/gnunet-service-dht_datacache.c
+++ b/src/dht/gnunet-service-dht_datacache.c
@@ -94,9 +94,9 @@ GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute
expiration,
put_path_length,
put_path);
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "DATACACHE PUT for key %s [%u] completed (%d) after %u hops\n",
+ "DATACACHE PUT for key %s [%lu] completed (%d) after %u hops\n",
GNUNET_h2s (key),
- data_size,
+ (unsigned long) data_size,
r,
put_path_length);
}
diff --git a/src/dht/gnunet-service-dht_neighbours.c
b/src/dht/gnunet-service-dht_neighbours.c
index b211fca6b..88b0c5d92 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -2212,8 +2212,8 @@ handle_dht_p2p_get (void *cls,
bg,
peer_bf);
GDS_CLIENTS_process_get (options
- | (GNUNET_OK == forwarded)
- ? GNUNET_DHT_RO_LAST_HOP : 0,
+ | ((GNUNET_OK == forwarded)
+ ? GNUNET_DHT_RO_LAST_HOP : 0),
type,
ntohl (get->hop_count),
ntohl (get->desired_replication_level),
diff --git a/src/dht/plugin_block_dht.c b/src/dht/plugin_block_dht.c
index f213433ed..a9f336240 100644
--- a/src/dht/plugin_block_dht.c
+++ b/src/dht/plugin_block_dht.c
@@ -195,7 +195,7 @@ block_plugin_dht_get_key (void *cls,
{
GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
"block-dht",
- _ ("Size mismatch for block\n"),
+ _ ("Size mismatch for block with type %u\n"),
GNUNET_BLOCK_TYPE_DHT_HELLO);
return GNUNET_NO;
}
diff --git a/src/my/my_query_helper.c b/src/my/my_query_helper.c
index 526e57b8b..97ea04fd1 100644
--- a/src/my/my_query_helper.c
+++ b/src/my/my_query_helper.c
@@ -280,14 +280,14 @@ my_conv_rsa_public_key (void *cls,
MYSQL_BIND *qbind)
{
const struct GNUNET_CRYPTO_RsaPublicKey *rsa = qp->data;
- char *buf;
+ void *buf;
size_t buf_size;
(void) cls;
GNUNET_assert (1 == qp->num_params);
buf_size = GNUNET_CRYPTO_rsa_public_key_encode (rsa,
&buf);
- qbind->buffer = (void *) buf;
+ qbind->buffer = buf;
qbind->buffer_length = buf_size;
qbind->buffer_type = MYSQL_TYPE_BLOB;
return 1;
@@ -332,14 +332,14 @@ my_conv_rsa_signature (void *cls,
MYSQL_BIND *qbind)
{
const struct GNUNET_CRYPTO_RsaSignature *sig = qp->data;
- char *buf;
+ void *buf;
size_t buf_size;
(void) cls;
GNUNET_assert (1 == qp->num_params);
buf_size = GNUNET_CRYPTO_rsa_signature_encode (sig,
&buf);
- qbind->buffer = (void *) buf;
+ qbind->buffer = buf;
qbind->buffer_length = buf_size;
qbind->buffer_type = MYSQL_TYPE_BLOB;
return 1;
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c
index 81a16b245..f653a716e 100644
--- a/src/nse/gnunet-nse-profiler.c
+++ b/src/nse/gnunet-nse-profiler.c
@@ -317,7 +317,7 @@ handle_estimate (void *cls,
}
size = GNUNET_snprintf (output_buffer,
sizeof(output_buffer),
- "%p %llu %llu %f %f %f\n",
+ "%p %u %llu %f %f %f\n",
peer,
peers_running,
(unsigned long long) timestamp.abs_value_us,
diff --git a/src/testbed-logger/gnunet-service-testbed-logger.c
b/src/testbed-logger/gnunet-service-testbed-logger.c
index 81652fa4f..bc2f0abe0 100644
--- a/src/testbed-logger/gnunet-service-testbed-logger.c
+++ b/src/testbed-logger/gnunet-service-testbed-logger.c
@@ -198,7 +198,7 @@ logger_run (void *cls,
GNUNET_asprintf (&fn,
"%s/%.*s_%jd.dat",
dir,
- hname_len,
+ (int) hname_len,
hname,
(intmax_t) pid);
GNUNET_free (hname);
diff --git a/src/testbed/gnunet-service-testbed_cpustatus.c
b/src/testbed/gnunet-service-testbed_cpustatus.c
index 70b865c73..440f2c24f 100644
--- a/src/testbed/gnunet-service-testbed_cpustatus.c
+++ b/src/testbed/gnunet-service-testbed_cpustatus.c
@@ -608,7 +608,7 @@ GST_stats_init (const struct GNUNET_CONFIGURATION_Handle
*cfg)
return;
}
fn = NULL;
- (void) GNUNET_asprintf (&fn, "%s/%.*s-%jd.dat", stats_dir, len,
+ (void) GNUNET_asprintf (&fn, "%s/%.*s-%jd.dat", stats_dir, (int)len,
hostname, (intmax_t) getpid ());
GNUNET_free (stats_dir);
GNUNET_free (hostname);
diff --git a/src/testbed/testbed_api.c b/src/testbed/testbed_api.c
index 697783d96..09752ba28 100644
--- a/src/testbed/testbed_api.c
+++ b/src/testbed/testbed_api.c
@@ -448,7 +448,7 @@ handle_opsuccess (
uint64_t op_id;
op_id = GNUNET_ntohll (msg->operation_id);
- LOG_DEBUG ("Operation %lu successful\n", op_id);
+ LOG_DEBUG ("Operation %llu successful\n", op_id);
if (NULL == (opc = find_opc (c, op_id)))
{
LOG_DEBUG ("Operation not found\n");
diff --git a/src/testbed/testbed_api_topology.c
b/src/testbed/testbed_api_topology.c
index 1d765af92..a9a340e99 100644
--- a/src/testbed/testbed_api_topology.c
+++ b/src/testbed/testbed_api_topology.c
@@ -1089,7 +1089,7 @@ gen_topo_from_file (struct TopologyContext *tc,
if (tc->num_peers <= peer_id)
{
LOG (GNUNET_ERROR_TYPE_ERROR,
- _ ("Topology file needs more peers than given ones\n"), filename);
+ _ ("Topology file needs more peers than given ones\n"));
goto _exit;
}
state = OTHER_PEER_INDEX;
@@ -1114,7 +1114,7 @@ gen_topo_from_file (struct TopologyContext *tc,
if (tc->num_peers <= other_peer_id)
{
LOG (GNUNET_ERROR_TYPE_ERROR,
- _ ("Topology file needs more peers than given ones\n"), filename);
+ _ ("Topology file needs more peers than given ones\n"));
goto _exit;
}
if (peer_id != other_peer_id)
@@ -1150,7 +1150,7 @@ gen_topo_from_file (struct TopologyContext *tc,
}
else
LOG (GNUNET_ERROR_TYPE_WARNING,
- _ ("Ignoring to connect peer %u to peer %u\n"),
+ _ ("Ignoring to connect peer %lu to peer %lu\n"),
peer_id,
other_peer_id);
while (('\n' != data[offset]) && ('|' != data[offset]) && (offset < fs))
diff --git a/src/transport/plugin_transport_http_client.c
b/src/transport/plugin_transport_http_client.c
index 92ed2fe52..219fae57b 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -769,10 +769,10 @@ http_client_plugin_send (void *cls,
char *stat_txt;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Session %p/request %p: Sending message with %u to peer `%s' \n",
+ "Session %p/request %p: Sending message with %lu to peer `%s' \n",
s,
s->put.easyhandle,
- msgbuf_size,
+ (unsigned long) msgbuf_size,
GNUNET_i2s (&s->address->peer));
/* create new message and schedule */
@@ -1087,11 +1087,10 @@ client_send_cb (void *stream,
if (msg->pos == msg->size)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Session %p/request %p: sent message with %u bytes sent, removing
message from queue\n",
+ "Session %p/request %p: sent message with %lu bytes sent, removing
message from queue\n",
s,
s->put.easyhandle,
- msg->size,
- msg->pos);
+ (unsigned long) msg->size);
/* Calling transmit continuation */
GNUNET_CONTAINER_DLL_remove (s->msg_head,
s->msg_tail,
@@ -1249,10 +1248,10 @@ client_receive (void *stream,
size_t len = size * nmemb;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Session %p / request %p: Received %u bytes from peer `%s'\n",
+ "Session %p / request %p: Received %lu bytes from peer `%s'\n",
s,
s->get.easyhandle,
- len,
+ (unsigned long) len,
GNUNET_i2s (&s->address->peer));
now = GNUNET_TIME_absolute_get ();
if (now.abs_value_us < s->next_receive.abs_value_us)
@@ -1346,7 +1345,7 @@ client_run (void *cls)
/* Log status of terminated request */
if ((0 != msg->data.result) || (http_statuscode != 200))
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Session %p/request %p: %s request to `%s' ended with status %i
reason %i: `%s'\n",
+ "Session %p/request %p: %s request to `%s' ended with status %li
reason %i: `%s'\n",
s, msg->easy_handle,
(GNUNET_YES == put_request) ? "PUT" : "GET",
GNUNET_i2s (&s->address->peer),
diff --git a/src/transport/plugin_transport_http_common.c
b/src/transport/plugin_transport_http_common.c
index d81d6db9c..0e3778837 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -629,7 +629,7 @@ http_common_plugin_address_to_string (const char *plugin,
if (addr_str[ntohl (address->urlen) - 1] != '\0')
return NULL;
GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl (address->options),
- &address[1]);
+ (char*)&address[1]);
if (strlen (res) + 1 < 500)
{
GNUNET_memcpy (rbuf, res, strlen (res) + 1);
diff --git a/src/transport/plugin_transport_http_server.c
b/src/transport/plugin_transport_http_server.c
index d1b21ba9c..6e95ca00c 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -745,10 +745,10 @@ http_server_plugin_send (void *cls,
char *stat_txt;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Session %p/request %p: Sending message with %u to peer `%s'\n",
+ "Session %p/request %p: Sending message with %lu to peer `%s'\n",
session,
session->server_send,
- msgbuf_size,
+ (unsigned long) msgbuf_size,
GNUNET_i2s (&session->target));
/* create new message and schedule */
@@ -1270,8 +1270,8 @@ server_parse_url (struct HTTP_Server_Plugin *plugin,
if (hash_length != plugin->peer_id_length)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "URL target is %u bytes, expecting %u\n",
- hash_length, plugin->peer_id_length);
+ "URL target is %lu bytes, expecting %u\n",
+ (unsigned long) hash_length, plugin->peer_id_length);
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
@@ -1616,8 +1616,8 @@ server_send_callback (void *cls,
{
sc->connected = GNUNET_YES;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Sent %u bytes to peer `%s' with session %p \n",
- bytes_read,
+ "Sent %lu bytes to peer `%s' with session %p \n",
+ (unsigned long) bytes_read,
GNUNET_i2s (&s->target),
s);
GNUNET_asprintf (&stat_txt,
@@ -1761,14 +1761,14 @@ server_access_cb (void *cls,
LOG (GNUNET_ERROR_TYPE_DEBUG,
_ (
- "Access from connection %p (%u of %u) for `%s' `%s' url `%s' with
upload data size %u\n"),
+ "Access from connection %p (%u of %u) for `%s' `%s' url `%s' with
upload data size %lu\n"),
sc,
plugin->cur_request,
plugin->max_request,
method,
version,
url,
- (*upload_data_size));
+ (unsigned long) (*upload_data_size));
if (NULL == sc)
{
/* CORS pre-flight request */
@@ -1868,19 +1868,19 @@ server_access_cb (void *cls,
/* (*upload_data_size > 0) for every segment received */
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Session %p / Connection %p: Peer `%s' PUT on address `%s' received
%u bytes\n",
+ "Session %p / Connection %p: Peer `%s' PUT on address `%s' received
%lu bytes\n",
s, sc,
GNUNET_i2s (&s->target),
http_common_plugin_address_to_string (plugin->protocol,
s->address->address,
s->address->address_length),
- *upload_data_size);
+ (unsigned long) *upload_data_size);
delay = GNUNET_TIME_absolute_get_remaining (s->next_receive);
if (0 == delay.rel_value_us)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "PUT with %u bytes forwarded to MST\n",
- *upload_data_size);
+ "PUT with %lu bytes forwarded to MST\n",
+ (unsigned long) *upload_data_size);
if (s->msg_tk == NULL)
{
s->msg_tk = GNUNET_MST_create (&server_receive_mst_cb,
diff --git a/src/transport/plugin_transport_tcp.c
b/src/transport/plugin_transport_tcp.c
index e3bc21543..8378a64dd 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -2010,8 +2010,8 @@ do_transmit (void *cls, size_t size, void *buf)
GNUNET_assert (pos->message_size <= session->bytes_in_queue);
session->bytes_in_queue -= pos->message_size;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Failed to transmit %u byte message to `%s'.\n",
- pos->message_size,
+ "Failed to transmit %lu byte message to `%s'.\n",
+ (unsigned long) pos->message_size,
GNUNET_i2s (&session->target));
ret += pos->message_size;
GNUNET_CONTAINER_DLL_insert_after (hd, tl, tl, pos);
@@ -2067,9 +2067,9 @@ do_transmit (void *cls, size_t size, void *buf)
session->bytes_in_queue -= pos->message_size;
GNUNET_assert (size >= pos->message_size);
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Transmitting message of type %u size %u to peer %s at %s\n",
+ "Transmitting message of type %u size %lu to peer %s at %s\n",
ntohs (((struct GNUNET_MessageHeader *) pos->msg)->type),
- pos->message_size,
+ (unsigned long) pos->message_size,
GNUNET_i2s (&session->target),
tcp_plugin_address_to_string (session->plugin,
session->address->address,
@@ -2192,8 +2192,8 @@ tcp_plugin_send (void *cls,
pm->transmit_cont_cls = cont_cls;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Asked to transmit %u bytes to `%s', added message to list.\n",
- msgbuf_size,
+ "Asked to transmit %lu bytes to `%s', added message to list.\n",
+ (unsigned long) msgbuf_size,
GNUNET_i2s (&session->target));
if (GNUNET_YES ==
diff --git a/src/transport/plugin_transport_udp.c
b/src/transport/plugin_transport_udp.c
index ec3a0edd8..49e84dfe7 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1821,7 +1821,8 @@ enqueue_fragment (void *cls, const struct
GNUNET_MessageHeader *msg)
struct GNUNET_ATS_Session *session = frag_ctx->session;
size_t msg_len = ntohs (msg->size);
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Enqueuing fragment with %u bytes\n", msg_len);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Enqueuing fragment with %lu bytes\n",
+ (unsigned long) msg_len);
udpw = GNUNET_malloc (sizeof(struct UDP_MessageWrapper) + msg_len);
udpw->session = session;
udpw->msg_buf = (char *) &udpw[1];
@@ -1996,8 +1997,8 @@ udp_plugin_send (void *cls,
return GNUNET_SYSERR;
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "UDP transmits %u-byte message to `%s' using address `%s'\n",
- udpmlen,
+ "UDP transmits %lu-byte message to `%s' using address `%s'\n",
+ (unsigned long) udpmlen,
GNUNET_i2s (&s->target),
udp_address_to_string (plugin,
s->address->address,
@@ -3113,18 +3114,18 @@ remove_timeout_messages_and_select (struct Plugin
*plugin,
{
/* this message is not delayed */
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Message for peer `%s' (%u bytes) is not delayed \n",
+ "Message for peer `%s' (%lu bytes) is not delayed \n",
GNUNET_i2s (&udpw->session->target),
- udpw->payload_size);
+ (unsigned long) udpw->payload_size);
break; /* Found message to send, break */
}
else
{
/* Message is delayed, try next */
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Message for peer `%s' (%u bytes) is delayed for %s\n",
+ "Message for peer `%s' (%lu bytes) is delayed for %s\n",
GNUNET_i2s (&udpw->session->target),
- udpw->payload_size,
+ (unsigned long) udpw->payload_size,
GNUNET_STRINGS_relative_time_to_string (remaining, GNUNET_YES));
udpw = udpw->next;
}
diff --git a/src/transport/plugin_transport_unix.c
b/src/transport/plugin_transport_unix.c
index 9d3e7d354..2324914c9 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -1304,8 +1304,8 @@ unix_plugin_send (void *cls,
return GNUNET_SYSERR;
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Sending %u bytes with session for peer `%s' `%s'\n",
- msgbuf_size,
+ "Sending %lu bytes with session for peer `%s' `%s'\n",
+ (unsigned long) msgbuf_size,
GNUNET_i2s (&session->target),
unix_plugin_address_to_string (NULL,
session->address->address,
diff --git a/src/transport/tcp_connection_legacy.c
b/src/transport/tcp_connection_legacy.c
index 3e173b8a4..924362ef2 100644
--- a/src/transport/tcp_connection_legacy.c
+++ b/src/transport/tcp_connection_legacy.c
@@ -1142,9 +1142,9 @@ RETRY:
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "receive_ready read %u/%u bytes from `%s' (%p)!\n",
- (unsigned int) ret,
- connection->max,
+ "receive_ready read %lu/%lu bytes from `%s' (%p)!\n",
+ (unsigned long) ret,
+ (unsigned long) connection->max,
GNUNET_a2s (connection->addr, connection->addrlen),
connection);
GNUNET_assert (NULL != (receiver = connection->receiver));
@@ -1327,8 +1327,8 @@ connect_error (void *cls)
GNUNET_CONNECTION_TransmitReadyNotify notify;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Transmission request of size %u fails (%s/%u), connection failed
(%p).\n",
- connection->nth.notify_size,
+ "Transmission request of size %lu fails (%s/%u), connection failed
(%p).\n",
+ (unsigned long) connection->nth.notify_size,
connection->hostname,
connection->port,
connection);
@@ -1423,9 +1423,9 @@ RETRY:
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Connection transmitted %u/%u bytes to `%s' (%p)\n",
- (unsigned int) ret,
- have,
+ "Connection transmitted %lu/%lu bytes to `%s' (%p)\n",
+ (unsigned long) ret,
+ (unsigned long) have,
GNUNET_a2s (connection->addr, connection->addrlen),
connection);
connection->write_buffer_pos += ret;
diff --git a/src/transport/tcp_service_legacy.c
b/src/transport/tcp_service_legacy.c
index 12dce3993..8606b353b 100644
--- a/src/transport/tcp_service_legacy.c
+++ b/src/transport/tcp_service_legacy.c
@@ -1433,7 +1433,7 @@ LEGACY_SERVICE_run (int argc,
{
clock_offset = skew_offset - skew_variance;
GNUNET_TIME_set_offset (clock_offset);
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Skewing clock by %dll ms\n", clock_offset);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Skewing clock by %lld ms\n", clock_offset);
}
/* actually run service */
err = 0;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix more warnings,
gnunet <=