aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-27 21:46:41 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-27 21:46:41 +0000
commit46a63dc665f31fa7d42639ab6adabbdb1af239c8 (patch)
tree6c3e58a7f57d6d3ee44aa6cd2808b5458d75de4b /src/transport/plugin_transport_http.c
parent4848a679018f9e864cd277345191ad8f1000b5ff (diff)
downloadgnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.tar.gz
gnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.zip
renaming GNUNET_TIME_relative_get_forever and GNUNET_TIME_absolute_get_forever methods, adding underscore, to make it clear that the respective #defines should be used instead; replacing use of direct function calls with respective macros where applicable; adding additional GNUNET_TIME_relative_get_xxx-functions to avoid calls to GNUNET_TIME_relative_multiply, which turn out to have gotten performance-relevant
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 37f7f798d..d55cdb76b 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -620,8 +620,6 @@ create_session (struct Plugin *plugin, const struct GNUNET_PeerIdentity *target,
620 s->addr = GNUNET_malloc (addrlen); 620 s->addr = GNUNET_malloc (addrlen);
621 memcpy (s->addr, addr, addrlen); 621 memcpy (s->addr, addr, addrlen);
622 s->addrlen = addrlen; 622 s->addrlen = addrlen;
623 s->next = NULL;
624 s->next_receive = GNUNET_TIME_absolute_get_zero ();
625 s->ats_address_network_type = htonl (GNUNET_ATS_NET_UNSPECIFIED); 623 s->ats_address_network_type = htonl (GNUNET_ATS_NET_UNSPECIFIED);
626 start_session_timeout(s); 624 start_session_timeout(s);
627 return s; 625 return s;