aboutsummaryrefslogtreecommitdiff
path: root/src/util/server_tc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-04 13:26:53 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-04 13:26:53 +0000
commitc1bfa3bb665db51d948da54e6f3cda911314c5d6 (patch)
tree8c3ba9a3b949bcb8d4cf8b70da93be08c0232e31 /src/util/server_tc.c
parentbd6b5f7c23c5288e5878a552c499fb20cff695cd (diff)
downloadgnunet-c1bfa3bb665db51d948da54e6f3cda911314c5d6.tar.gz
gnunet-c1bfa3bb665db51d948da54e6f3cda911314c5d6.zip
-doxygen
Diffstat (limited to 'src/util/server_tc.c')
-rw-r--r--src/util/server_tc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/server_tc.c b/src/util/server_tc.c
index ce40db19c..f803af48c 100644
--- a/src/util/server_tc.c
+++ b/src/util/server_tc.c
@@ -82,7 +82,7 @@ transmit_response (void *cls, size_t size, void *buf)
82 struct GNUNET_SERVER_TransmitContext *tc = cls; 82 struct GNUNET_SERVER_TransmitContext *tc = cls;
83 size_t msize; 83 size_t msize;
84 84
85 if (buf == NULL) 85 if (NULL == buf)
86 { 86 {
87 GNUNET_SERVER_transmit_context_destroy (tc, GNUNET_SYSERR); 87 GNUNET_SERVER_transmit_context_destroy (tc, GNUNET_SYSERR);
88 return 0; 88 return 0;
@@ -95,7 +95,6 @@ transmit_response (void *cls, size_t size, void *buf)
95 tc->off += msize; 95 tc->off += msize;
96 if (tc->total == tc->off) 96 if (tc->total == tc->off)
97 { 97 {
98
99 GNUNET_SERVER_receive_done (tc->client, GNUNET_OK); 98 GNUNET_SERVER_receive_done (tc->client, GNUNET_OK);
100 GNUNET_SERVER_client_drop (tc->client); 99 GNUNET_SERVER_client_drop (tc->client);
101 GNUNET_free_non_null (tc->buf); 100 GNUNET_free_non_null (tc->buf);
@@ -131,7 +130,7 @@ GNUNET_SERVER_transmit_context_create (struct GNUNET_SERVER_Client *client)
131{ 130{
132 struct GNUNET_SERVER_TransmitContext *tc; 131 struct GNUNET_SERVER_TransmitContext *tc;
133 132
134 GNUNET_assert (client != NULL); 133 GNUNET_assert (NULL != client);
135 tc = GNUNET_malloc (sizeof (struct GNUNET_SERVER_TransmitContext)); 134 tc = GNUNET_malloc (sizeof (struct GNUNET_SERVER_TransmitContext));
136 GNUNET_SERVER_client_keep (client); 135 GNUNET_SERVER_client_keep (client);
137 tc->client = client; 136 tc->client = client;