diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-09 07:44:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-09 07:44:54 +0000 |
commit | a1d89c2e90376f4e806aa9a2850dc87b37d10ddd (patch) | |
tree | 24d83c2d917804942468ce5ea123d9134fa7a01b /src/fs/gnunet-service-fs_cp.c | |
parent | ea91185b426f29135dc94a6375a14986adbf0314 (diff) | |
download | gnunet-a1d89c2e90376f4e806aa9a2850dc87b37d10ddd.tar.gz gnunet-a1d89c2e90376f4e806aa9a2850dc87b37d10ddd.zip |
-minor code cleanup
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 561d73c0d..f5b5213bc 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c | |||
@@ -1336,15 +1336,15 @@ peer_transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1336 | /** | 1336 | /** |
1337 | * Transmit a message to the given peer as soon as possible. | 1337 | * Transmit a message to the given peer as soon as possible. |
1338 | * If the peer disconnects before the transmission can happen, | 1338 | * If the peer disconnects before the transmission can happen, |
1339 | * the callback is invoked with a 'NULL' buffer. | 1339 | * the callback is invoked with a `NULL` @a buffer. |
1340 | * | 1340 | * |
1341 | * @param cp target peer | 1341 | * @param cp target peer |
1342 | * @param is_query is this a query (GNUNET_YES) or content (GNUNET_NO) or neither (GNUNET_SYSERR) | 1342 | * @param is_query is this a query (#GNUNET_YES) or content (#GNUNET_NO) or neither (#GNUNET_SYSERR) |
1343 | * @param priority how important is this request? | 1343 | * @param priority how important is this request? |
1344 | * @param timeout when does this request timeout (call gmc with error) | 1344 | * @param timeout when does this request timeout (call gmc with error) |
1345 | * @param size number of bytes we would like to send to the peer | 1345 | * @param size number of bytes we would like to send to the peer |
1346 | * @param gmc function to call to get the message | 1346 | * @param gmc function to call to get the message |
1347 | * @param gmc_cls closure for gmc | 1347 | * @param gmc_cls closure for @a gmc |
1348 | * @return handle to cancel request | 1348 | * @return handle to cancel request |
1349 | */ | 1349 | */ |
1350 | struct GSF_PeerTransmitHandle * | 1350 | struct GSF_PeerTransmitHandle * |
@@ -1573,10 +1573,10 @@ struct IterationContext | |||
1573 | /** | 1573 | /** |
1574 | * Function that calls the callback for each peer. | 1574 | * Function that calls the callback for each peer. |
1575 | * | 1575 | * |
1576 | * @param cls the 'struct IterationContext*' | 1576 | * @param cls the `struct IterationContext *` |
1577 | * @param key identity of the peer | 1577 | * @param key identity of the peer |
1578 | * @param value the 'struct GSF_ConnectedPeer*' | 1578 | * @param value the `struct GSF_ConnectedPeer *` |
1579 | * @return GNUNET_YES to continue iteration | 1579 | * @return #GNUNET_YES to continue iteration |
1580 | */ | 1580 | */ |
1581 | static int | 1581 | static int |
1582 | call_iterator (void *cls, const struct GNUNET_HashCode * key, void *value) | 1582 | call_iterator (void *cls, const struct GNUNET_HashCode * key, void *value) |
@@ -1593,7 +1593,7 @@ call_iterator (void *cls, const struct GNUNET_HashCode * key, void *value) | |||
1593 | * Iterate over all connected peers. | 1593 | * Iterate over all connected peers. |
1594 | * | 1594 | * |
1595 | * @param it function to call for each peer | 1595 | * @param it function to call for each peer |
1596 | * @param it_cls closure for it | 1596 | * @param it_cls closure for @a it |
1597 | */ | 1597 | */ |
1598 | void | 1598 | void |
1599 | GSF_iterate_connected_peers_ (GSF_ConnectedPeerIterator it, void *it_cls) | 1599 | GSF_iterate_connected_peers_ (GSF_ConnectedPeerIterator it, void *it_cls) |
@@ -1794,7 +1794,7 @@ GSF_connected_peer_init_ () | |||
1794 | GNUNET_CONFIGURATION_get_value_filename (GSF_cfg, "fs", | 1794 | GNUNET_CONFIGURATION_get_value_filename (GSF_cfg, "fs", |
1795 | "RESPECT", | 1795 | "RESPECT", |
1796 | &respectDirectory)); | 1796 | &respectDirectory)); |
1797 | GNUNET_DISK_directory_create (respectDirectory); | 1797 | GNUNET_break (GNUNET_OK == GNUNET_DISK_directory_create (respectDirectory)); |
1798 | GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_HIGH, | 1798 | GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_HIGH, |
1799 | &cron_flush_respect, NULL); | 1799 | &cron_flush_respect, NULL); |
1800 | } | 1800 | } |
@@ -1806,7 +1806,7 @@ GSF_connected_peer_init_ () | |||
1806 | * @param cls closure, unused | 1806 | * @param cls closure, unused |
1807 | * @param key current key code | 1807 | * @param key current key code |
1808 | * @param value value in the hash map (peer entry) | 1808 | * @param value value in the hash map (peer entry) |
1809 | * @return GNUNET_YES (we should continue to iterate) | 1809 | * @return #GNUNET_YES (we should continue to iterate) |
1810 | */ | 1810 | */ |
1811 | static int | 1811 | static int |
1812 | clean_peer (void *cls, const struct GNUNET_HashCode * key, void *value) | 1812 | clean_peer (void *cls, const struct GNUNET_HashCode * key, void *value) |
@@ -1837,7 +1837,7 @@ GSF_connected_peer_done_ () | |||
1837 | * @param cls the 'struct GSF_LocalClient*' to look for | 1837 | * @param cls the 'struct GSF_LocalClient*' to look for |
1838 | * @param key current key code | 1838 | * @param key current key code |
1839 | * @param value value in the hash map (peer entry) | 1839 | * @param value value in the hash map (peer entry) |
1840 | * @return GNUNET_YES (we should continue to iterate) | 1840 | * @return #GNUNET_YES (we should continue to iterate) |
1841 | */ | 1841 | */ |
1842 | static int | 1842 | static int |
1843 | clean_local_client (void *cls, const struct GNUNET_HashCode * key, void *value) | 1843 | clean_local_client (void *cls, const struct GNUNET_HashCode * key, void *value) |