diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-22 22:08:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-22 22:08:35 +0000 |
commit | 15a1ecaaeb9aa1aebba7404993e1b6945bbc014e (patch) | |
tree | a5a0b5f0048d463854da2e805602b905180d4405 /src/peerinfo | |
parent | db554c393137201c6a5c846eee77b0f11882b18c (diff) | |
download | gnunet-15a1ecaaeb9aa1aebba7404993e1b6945bbc014e.tar.gz gnunet-15a1ecaaeb9aa1aebba7404993e1b6945bbc014e.zip |
-stylistic fixes
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 229f626b4..9ec193571 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -59,7 +59,7 @@ struct GNUNET_PEERINFO_AddContext | |||
59 | GNUNET_PEERINFO_Continuation cont; | 59 | GNUNET_PEERINFO_Continuation cont; |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * Closure for 'cont'. | 62 | * Closure for @e cont. |
63 | */ | 63 | */ |
64 | void *cont_cls; | 64 | void *cont_cls; |
65 | 65 | ||
@@ -110,7 +110,7 @@ struct GNUNET_PEERINFO_IteratorContext | |||
110 | /** | 110 | /** |
111 | * Task responsible for timeout. | 111 | * Task responsible for timeout. |
112 | */ | 112 | */ |
113 | struct GNUNET_SCHEDULER_Task * timeout_task; | 113 | struct GNUNET_SCHEDULER_Task *timeout_task; |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * Timeout for the operation. | 116 | * Timeout for the operation. |
@@ -179,7 +179,7 @@ struct GNUNET_PEERINFO_Handle | |||
179 | /** | 179 | /** |
180 | * ID for a reconnect task. | 180 | * ID for a reconnect task. |
181 | */ | 181 | */ |
182 | struct GNUNET_SCHEDULER_Task * r_task; | 182 | struct GNUNET_SCHEDULER_Task *r_task; |
183 | 183 | ||
184 | /** | 184 | /** |
185 | * Are we now receiving? | 185 | * Are we now receiving? |
@@ -430,8 +430,8 @@ trigger_transmit (struct GNUNET_PEERINFO_Handle *h) | |||
430 | * @return handle to cancel add operation; all pending | 430 | * @return handle to cancel add operation; all pending |
431 | * 'add' operations will be cancelled automatically | 431 | * 'add' operations will be cancelled automatically |
432 | * on disconnect, so it is not necessary to keep this | 432 | * on disconnect, so it is not necessary to keep this |
433 | * handle (unless 'cont' is NULL and at some point | 433 | * handle (unless @a cont is NULL and at some point |
434 | * calling 'cont' must be prevented) | 434 | * calling @a cont must be prevented) |
435 | */ | 435 | */ |
436 | struct GNUNET_PEERINFO_AddContext * | 436 | struct GNUNET_PEERINFO_AddContext * |
437 | GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, | 437 | GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, |
@@ -445,10 +445,9 @@ GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, | |||
445 | 445 | ||
446 | GNUNET_assert (GNUNET_OK == GNUNET_HELLO_get_id (hello, &peer)); | 446 | GNUNET_assert (GNUNET_OK == GNUNET_HELLO_get_id (hello, &peer)); |
447 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 447 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
448 | "Adding peer `%s' to PEERINFO database (%u bytes of `%s')\n", | 448 | "Adding peer `%s' to PEERINFO database (%u bytes of HELLO)\n", |
449 | GNUNET_i2s (&peer), | 449 | GNUNET_i2s (&peer), |
450 | hs, | 450 | hs); |
451 | "HELLO"); | ||
452 | ac = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_AddContext) + hs); | 451 | ac = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_AddContext) + hs); |
453 | ac->h = h; | 452 | ac->h = h; |
454 | ac->size = hs; | 453 | ac->size = hs; |