diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-23 19:24:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-23 19:24:14 +0000 |
commit | f874eb3423cde2257d57c0f5d651297b303b3cff (patch) | |
tree | dbc7e59d4edcff24cd64b75cfdb78e1198347ac2 /src/transport/plugin_transport_http_common.c | |
parent | cb2ba3aea878701a9bf816892de389eb45ca9aa4 (diff) | |
download | gnunet-f874eb3423cde2257d57c0f5d651297b303b3cff.tar.gz gnunet-f874eb3423cde2257d57c0f5d651297b303b3cff.zip |
-minor code cleanup, indentation, doxygen
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r-- | src/transport/plugin_transport_http_common.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c index 4cc6a84b2..a2e4fd129 100644 --- a/src/transport/plugin_transport_http_common.c +++ b/src/transport/plugin_transport_http_common.c | |||
@@ -29,15 +29,6 @@ | |||
29 | #include "plugin_transport_http_common.h" | 29 | #include "plugin_transport_http_common.h" |
30 | 30 | ||
31 | 31 | ||
32 | struct SplittedHTTPAddress | ||
33 | { | ||
34 | char *protocol; | ||
35 | char *host; | ||
36 | char *path; | ||
37 | int port; | ||
38 | }; | ||
39 | |||
40 | |||
41 | static void | 32 | static void |
42 | http_clean_splitted (struct SplittedHTTPAddress *spa) | 33 | http_clean_splitted (struct SplittedHTTPAddress *spa) |
43 | { | 34 | { |
@@ -474,8 +465,8 @@ http_common_socket_from_address (const void *addr, | |||
474 | spa = http_split_address ((const char *) &ha[1]); | 465 | spa = http_split_address ((const char *) &ha[1]); |
475 | if (NULL == spa) | 466 | if (NULL == spa) |
476 | { | 467 | { |
477 | (*res) = GNUNET_SYSERR; | 468 | (*res) = GNUNET_SYSERR; |
478 | return NULL; | 469 | return NULL; |
479 | } | 470 | } |
480 | 471 | ||
481 | s = GNUNET_new (struct sockaddr_storage); | 472 | s = GNUNET_new (struct sockaddr_storage); |