[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix some compiler warnings
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix some compiler warnings |
Date: |
Fri, 15 Feb 2019 21:16:40 +0100 |
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 2a461dcb1 fix some compiler warnings
2a461dcb1 is described below
commit 2a461dcb1fd5875139654650cc4d6c525f2289b7
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri Feb 15 21:16:37 2019 +0100
fix some compiler warnings
---
src/gns/gnunet-gns-proxy.c | 5 +++--
src/namecache/plugin_namecache_flat.c | 2 +-
src/peerstore/plugin_peerstore_flat.c | 4 ++--
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index 21451651d..9db388e77 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -2045,11 +2045,12 @@ create_response (void *cls,
const char *us;
long upload_size;
+ upload_size = 0;
us = MHD_lookup_connection_value (con,
MHD_HEADER_KIND,
MHD_HTTP_HEADER_CONTENT_LENGTH);
if ( (NULL != us) &&
- (1 == sscanf (us,
+ (1 == sscanf (us,
"%ld",
&upload_size)) &&
(upload_size >= 0) )
@@ -2149,7 +2150,7 @@ create_response (void *cls,
curl_easy_setopt (s5r->curl,
CURLOPT_USE_SSL,
CURLUSESSL_ALL);
- if (NULL != s5r->dane_data)
+ if (0 < s5r->num_danes)
curl_easy_setopt (s5r->curl,
CURLOPT_SSL_VERIFYPEER,
0L);
diff --git a/src/namecache/plugin_namecache_flat.c
b/src/namecache/plugin_namecache_flat.c
index 4323780d5..c093cb2a9 100644
--- a/src/namecache/plugin_namecache_flat.c
+++ b/src/namecache/plugin_namecache_flat.c
@@ -173,7 +173,7 @@ database_setup (struct Plugin *plugin)
&entry->query));
GNUNET_STRINGS_base64_decode (block,
strlen (block),
- &block_buffer);
+ (void**)&block_buffer);
entry->block = (struct GNUNET_GNSRECORD_Block *) block_buffer;
if (GNUNET_OK !=
GNUNET_CONTAINER_multihashmap_put (plugin->hm,
diff --git a/src/peerstore/plugin_peerstore_flat.c
b/src/peerstore/plugin_peerstore_flat.c
index cd1837e1a..0cd2522ec 100644
--- a/src/peerstore/plugin_peerstore_flat.c
+++ b/src/peerstore/plugin_peerstore_flat.c
@@ -440,7 +440,7 @@ database_setup (struct Plugin *plugin)
o = NULL;
s = GNUNET_STRINGS_base64_decode (peer,
strlen (peer),
- &o);
+ (void**)&o);
if (sizeof (struct GNUNET_PeerIdentity) == s)
GNUNET_memcpy (&entry->peer,
o,
@@ -451,7 +451,7 @@ database_setup (struct Plugin *plugin)
}
entry->value_size = GNUNET_STRINGS_base64_decode (value,
strlen (value),
- (char**)&entry->value);
+ (void**)&entry->value);
if (GNUNET_SYSERR ==
GNUNET_STRINGS_fancy_time_to_absolute (expiry,
&entry->expiry))
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix some compiler warnings,
gnunet <=