diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-03 09:35:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-03 09:35:38 +0000 |
commit | 3972d5df8bb9b75dfcb1cd80404675e2b94b0deb (patch) | |
tree | 79ae65ea394308fa58d65e7fbc94a615184fe9ca /src/util | |
parent | 7d6e6b045a300cf753e685bc18ec0b1e264d1a25 (diff) | |
download | gnunet-3972d5df8bb9b75dfcb1cd80404675e2b94b0deb.tar.gz gnunet-3972d5df8bb9b75dfcb1cd80404675e2b94b0deb.zip |
-indentation fixes
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/service.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/util/service.c b/src/util/service.c index 9ba536245..a6165b8d5 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -686,16 +686,19 @@ GNUNET_SERVICE_get_server_addresses (const char *service_name, | |||
686 | if (NULL != hostname) | 686 | if (NULL != hostname) |
687 | { | 687 | { |
688 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 688 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
689 | "Resolving `%s' since that is where `%s' will bind to.\n", hostname, | 689 | "Resolving `%s' since that is where `%s' will bind to.\n", |
690 | hostname, | ||
690 | service_name); | 691 | service_name); |
691 | memset (&hints, 0, sizeof (struct addrinfo)); | 692 | memset (&hints, 0, sizeof (struct addrinfo)); |
692 | if (disablev6) | 693 | if (disablev6) |
693 | hints.ai_family = AF_INET; | 694 | hints.ai_family = AF_INET; |
694 | hints.ai_protocol = IPPROTO_TCP; | 695 | hints.ai_protocol = IPPROTO_TCP; |
695 | if ((0 != (ret = getaddrinfo (hostname, NULL, &hints, &res))) || | 696 | if ((0 != (ret = getaddrinfo (hostname, NULL, &hints, &res))) || |
696 | (res == NULL)) | 697 | (NULL == res)) |
697 | { | 698 | { |
698 | LOG (GNUNET_ERROR_TYPE_ERROR, _("Failed to resolve `%s': %s\n"), hostname, | 699 | LOG (GNUNET_ERROR_TYPE_ERROR, |
700 | _("Failed to resolve `%s': %s\n"), | ||
701 | hostname, | ||
699 | gai_strerror (ret)); | 702 | gai_strerror (ret)); |
700 | GNUNET_free (hostname); | 703 | GNUNET_free (hostname); |
701 | GNUNET_free_non_null (unixpath); | 704 | GNUNET_free_non_null (unixpath); |
@@ -712,8 +715,10 @@ GNUNET_SERVICE_get_server_addresses (const char *service_name, | |||
712 | } | 715 | } |
713 | if (0 == i) | 716 | if (0 == i) |
714 | { | 717 | { |
715 | LOG (GNUNET_ERROR_TYPE_ERROR, _("Failed to find %saddress for `%s'.\n"), | 718 | LOG (GNUNET_ERROR_TYPE_ERROR, |
716 | disablev6 ? "IPv4 " : "", hostname); | 719 | _("Failed to find %saddress for `%s'.\n"), |
720 | disablev6 ? "IPv4 " : "", | ||
721 | hostname); | ||
717 | freeaddrinfo (res); | 722 | freeaddrinfo (res); |
718 | GNUNET_free (hostname); | 723 | GNUNET_free (hostname); |
719 | GNUNET_free_non_null (unixpath); | 724 | GNUNET_free_non_null (unixpath); |