[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33496 - in gnunet/src: include util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33496 - in gnunet/src: include util |
Date: |
Tue, 3 Jun 2014 11:35:38 +0200 |
Author: grothoff
Date: 2014-06-03 11:35:38 +0200 (Tue, 03 Jun 2014)
New Revision: 33496
Modified:
gnunet/src/include/gnunet_peerinfo_service.h
gnunet/src/util/service.c
Log:
-indentation fixes
Modified: gnunet/src/include/gnunet_peerinfo_service.h
===================================================================
--- gnunet/src/include/gnunet_peerinfo_service.h 2014-06-03 09:34:36 UTC
(rev 33495)
+++ gnunet/src/include/gnunet_peerinfo_service.h 2014-06-03 09:35:38 UTC
(rev 33496)
@@ -131,11 +131,11 @@
* @param hello hello message for the peer (can be NULL)
* @param error message
*/
-typedef void (*GNUNET_PEERINFO_Processor) (void *cls,
- const struct GNUNET_PeerIdentity *
- peer,
- const struct GNUNET_HELLO_Message *
- hello, const char *err_msg);
+typedef void
+(*GNUNET_PEERINFO_Processor) (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const struct GNUNET_HELLO_Message *hello,
+ const char *err_msg);
/**
Modified: gnunet/src/util/service.c
===================================================================
--- gnunet/src/util/service.c 2014-06-03 09:34:36 UTC (rev 33495)
+++ gnunet/src/util/service.c 2014-06-03 09:35:38 UTC (rev 33496)
@@ -686,16 +686,19 @@
if (NULL != hostname)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Resolving `%s' since that is where `%s' will bind to.\n", hostname,
+ "Resolving `%s' since that is where `%s' will bind to.\n",
+ hostname,
service_name);
memset (&hints, 0, sizeof (struct addrinfo));
if (disablev6)
hints.ai_family = AF_INET;
hints.ai_protocol = IPPROTO_TCP;
if ((0 != (ret = getaddrinfo (hostname, NULL, &hints, &res))) ||
- (res == NULL))
+ (NULL == res))
{
- LOG (GNUNET_ERROR_TYPE_ERROR, _("Failed to resolve `%s': %s\n"),
hostname,
+ LOG (GNUNET_ERROR_TYPE_ERROR,
+ _("Failed to resolve `%s': %s\n"),
+ hostname,
gai_strerror (ret));
GNUNET_free (hostname);
GNUNET_free_non_null (unixpath);
@@ -712,8 +715,10 @@
}
if (0 == i)
{
- LOG (GNUNET_ERROR_TYPE_ERROR, _("Failed to find %saddress for `%s'.\n"),
- disablev6 ? "IPv4 " : "", hostname);
+ LOG (GNUNET_ERROR_TYPE_ERROR,
+ _("Failed to find %saddress for `%s'.\n"),
+ disablev6 ? "IPv4 " : "",
+ hostname);
freeaddrinfo (res);
GNUNET_free (hostname);
GNUNET_free_non_null (unixpath);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33496 - in gnunet/src: include util,
gnunet <=