aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn-helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-29 20:47:18 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-29 20:47:18 +0000
commit71ea5bd2d05058008e604ffd42993be9c7250e04 (patch)
treea5074671ddfaa9d1621a4182fc95a91a98b3d536 /src/vpn/gnunet-daemon-vpn-helper.c
parentb335777fd435142c16eb05e86c8a64a4b1a45447 (diff)
downloadgnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.tar.gz
gnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.zip
-fixing indentation
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn-helper.c')
-rw-r--r--src/vpn/gnunet-daemon-vpn-helper.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c
index 1ffb0f7d8..41910a701 100644
--- a/src/vpn/gnunet-daemon-vpn-helper.c
+++ b/src/vpn/gnunet-daemon-vpn-helper.c
@@ -168,8 +168,7 @@ initialize_tunnel_state (int addrlen, struct GNUNET_MESH_TransmitHandle *th)
168 * Send an dns-answer-packet to the helper 168 * Send an dns-answer-packet to the helper
169 */ 169 */
170void 170void
171helper_write (void *cls 171helper_write (void *cls GNUNET_UNUSED,
172 GNUNET_UNUSED,
173 const struct GNUNET_SCHEDULER_TaskContext *tsdkctx) 172 const struct GNUNET_SCHEDULER_TaskContext *tsdkctx)
174{ 173{
175 if (tsdkctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) 174 if (tsdkctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)
@@ -297,7 +296,7 @@ helper_write (void *cls
297 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Wrong addrlen = %d\n", 296 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Wrong addrlen = %d\n",
298 ans->pkt.addrlen); 297 ans->pkt.addrlen);
299 GNUNET_assert (0); 298 GNUNET_assert (0);
300 return; /* convince compiler that we're done here */ 299 return; /* convince compiler that we're done here */
301 } 300 }
302 301
303 GNUNET_CONTAINER_DLL_remove (answer_proc_head, answer_proc_tail, ans); 302 GNUNET_CONTAINER_DLL_remove (answer_proc_head, answer_proc_tail, ans);
@@ -321,8 +320,7 @@ helper_write (void *cls
321 * Receive packets from the helper-process 320 * Receive packets from the helper-process
322 */ 321 */
323void 322void
324message_token (void *cls GNUNET_UNUSED, void *client 323message_token (void *cls GNUNET_UNUSED, void *client GNUNET_UNUSED,
325 GNUNET_UNUSED,
326 const struct GNUNET_MessageHeader *message) 324 const struct GNUNET_MessageHeader *message)
327{ 325{
328 GNUNET_assert (ntohs (message->type) == GNUNET_MESSAGE_TYPE_VPN_HELPER); 326 GNUNET_assert (ntohs (message->type) == GNUNET_MESSAGE_TYPE_VPN_HELPER);
@@ -402,7 +400,7 @@ message_token (void *cls GNUNET_UNUSED, void *client
402 htons (sizeof (struct GNUNET_MessageHeader) + 400 htons (sizeof (struct GNUNET_MessageHeader) +
403 sizeof (GNUNET_HashCode) + ntohs (pkt6->ip6_hdr.paylgth)); 401 sizeof (GNUNET_HashCode) + ntohs (pkt6->ip6_hdr.paylgth));
404 402
405 GNUNET_MESH_ApplicationType app_type = 0; /* fix compiler uninitialized warning... */ 403 GNUNET_MESH_ApplicationType app_type = 0; /* fix compiler uninitialized warning... */
406 404
407 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "me->addrlen is %d\n", 405 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "me->addrlen is %d\n",
408 me->addrlen); 406 me->addrlen);