summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-11-07 00:06:26 +0000
committerChristian Grothoff <christian@grothoff.org>2015-11-07 00:06:26 +0000
commit3fd8c038f6b42cd13f20fa82ce2f130d258366c0 (patch)
treeb3e06f7bffac941da29a4f2539e92b764573a7e8 /src/transport/plugin_transport_http_common.c
parent49f07dd6fa3717c2035f616f973e4b67ac0b4f40 (diff)
-some code cleanup (indentation, redundant branches, etc.)
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r--src/transport/plugin_transport_http_common.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index 13f01f713..9c0e93a37 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -567,7 +567,7 @@ http_common_plugin_address_to_url (void *cls,
GNUNET_break(0);
return NULL;
}
- if (0 >= addrlen)
+ if (0 == addrlen)
{
GNUNET_break(0);
return NULL;
@@ -611,14 +611,14 @@ http_common_plugin_address_to_string (const char *plugin,
GNUNET_assert(NULL != plugin);
if (NULL == addr)
- return NULL ;
+ return NULL;
if (0 == addrlen)
- return NULL ;
+ return NULL;
if (addrlen != http_common_address_get_size (address))
- return NULL ;
+ return NULL;
addr_str = (char *) &address[1];
if (addr_str[ntohl (address->urlen) - 1] != '\0')
- return NULL ;
+ return NULL;
GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl (address->options),
&address[1]);
if (strlen (res) + 1 < 500)
@@ -629,7 +629,7 @@ http_common_plugin_address_to_string (const char *plugin,
}
GNUNET_break(0);
GNUNET_free(res);
- return NULL ;
+ return NULL;
}
/**
@@ -772,7 +772,7 @@ http_common_socket_from_address (const void *addr,
GNUNET_break (0);
return NULL;
}
- if (0 >= addrlen)
+ if (0 == addrlen)
{
GNUNET_break (0);
return NULL;
@@ -868,14 +868,14 @@ http_common_cmp_addresses (const void *addr1,
if (NULL == a1)
return GNUNET_SYSERR;
- if (0 >= addrlen1)
+ if (0 == addrlen1)
return GNUNET_SYSERR;
if (a1[addrlen1 - 1] != '\0')
return GNUNET_SYSERR;
if (NULL == a2)
return GNUNET_SYSERR;
- if (0 >= addrlen2)
+ if (0 == addrlen2)
return GNUNET_SYSERR;
if (a2[addrlen2 - 1] != '\0')
return GNUNET_SYSERR;