[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 03/14: Shuffle some vars around to fix a warning
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 03/14: Shuffle some vars around to fix a warning |
Date: |
Sat, 25 Feb 2017 22:04:53 +0100 |
This is an automated email from the git hooks/post-receive script.
lrn pushed a commit to branch master
in repository gnunet.
commit 5682fd249949bdbe4d7eeb5431736cf160fcd3a4
Author: Руслан Ижбулатов <address@hidden>
AuthorDate: Sat Feb 25 12:46:03 2017 +0000
Shuffle some vars around to fix a warning
On W32 the 'gc' variable is left unused.
---
src/util/connection.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/util/connection.c b/src/util/connection.c
index dfa673a86..e822b264f 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -335,12 +335,17 @@ GNUNET_CONNECTION_create_from_accept
(GNUNET_CONNECTION_AccessCheck access_cb,
struct sockaddr_in6 *v6;
struct sockaddr *sa;
void *uaddr;
- struct GNUNET_CONNECTION_Credentials *gcp;
- struct GNUNET_CONNECTION_Credentials gc;
#ifdef SO_PEERCRED
struct ucred uc;
socklen_t olen;
#endif
+ struct GNUNET_CONNECTION_Credentials *gcp;
+#if HAVE_GETPEEREID || defined(SO_PEERCRED) || HAVE_GETPEERUCRED
+ struct GNUNET_CONNECTION_Credentials gc;
+
+ gc.uid = 0;
+ gc.gid = 0;
+#endif
addrlen = sizeof (addr);
sock =
@@ -386,8 +391,6 @@ GNUNET_CONNECTION_create_from_accept
(GNUNET_CONNECTION_AccessCheck access_cb,
GNUNET_memcpy (uaddr, addr, addrlen);
}
gcp = NULL;
- gc.uid = 0;
- gc.gid = 0;
if (AF_UNIX == sa->sa_family)
{
#if HAVE_GETPEEREID
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] 12/14: Fix an initialization warning (GCC bug 53119), (continued)
- [GNUnet-SVN] [gnunet] 12/14: Fix an initialization warning (GCC bug 53119), gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 06/14: W32: Fix wrong format strings, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 10/14: W32: Splice GNUNET_memcpy macro into NAT and GNS helpers, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 09/14: Silence a GCC warning in gnunet-nat.c, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 14/14: W32: Fix msg allocation in gns helper service, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 11/14: W32: cast ntohl() result to uint32_t, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 01/14: W32: adapt the code to GNUNET_memcpy() that returns nothing, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 02/14: Use GNU printf format, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 05/14: W32: Fix the conditaions for the ifconfig function, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 13/14: W32: port gnunet-gns-import to new zone iterator callback API, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 03/14: Shuffle some vars around to fix a warning,
gnunet <=
- [GNUnet-SVN] [gnunet] 07/14: W32: placate GCC by initializing lsocks_write_fd to NULL, gnunet, 2017/02/25
- [GNUnet-SVN] [gnunet] 08/14: Link libgnunetblockgroup to libgnunetblock, gnunet, 2017/02/25