[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 10/13: simplify
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 10/13: simplify |
Date: |
Sun, 21 Jul 2019 20:27:53 +0200 |
This is an automated email from the git hooks/post-receive script.
t3sserakt pushed a commit to branch master
in repository gnunet.
commit 963c4fe2e94208a251b269e3a6918a71e8de1939
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Jul 17 10:12:59 2019 +0200
simplify
---
src/cadet/cadet_api.c | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index 0e655ee33..ff6f15543 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -11,7 +11,7 @@
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -932,21 +932,17 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel
*channel)
*/
const union GNUNET_CADET_ChannelInfo *
GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel,
- enum GNUNET_CADET_ChannelInfoOption option,
+ enum GNUNET_CADET_ChannelInfoOption option,
...)
{
- static int bool_flag;
-
switch (option)
{
- case GNUNET_CADET_OPTION_PEER:
- return (const union GNUNET_CADET_ChannelInfo *) &channel->peer;
- break;
- default:
- GNUNET_break (0);
- return NULL;
+ case GNUNET_CADET_OPTION_PEER:
+ return (const union GNUNET_CADET_ChannelInfo *) &channel->peer;
+ default:
+ GNUNET_break (0);
+ return NULL;
}
- return (const union GNUNET_CADET_ChannelInfo *) &channel->peer;
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [gnunet] branch master updated (dfeef02bf -> f096bdce8), gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 02/13: Merge branch 'master' into cadet_option, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 01/13: removed GNUNET_CADET_ChannelOption, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 03/13: added per message GNUNET_MQ_PriorityPreferences, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 07/13: Merge branch 'cadet_option' of ssh://gnunet.org/gnunet into cadet_option, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 05/13: added per message GNUNET_MQ_PriorityPreferences, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 06/13: removed channel attributes, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 08/13: fixed chanel_get_info, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 10/13: simplify,
gnunet <=
- [GNUnet-SVN] [gnunet] 12/13: removed last use of old api, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 04/13: removed GNUNET_CADET_ChannelOption, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 09/13: fixed broken api calls in test; fixed broken protocol, gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 13/13: Merge branch 'cadet-new-options', gnunet, 2019/07/21
- [GNUnet-SVN] [gnunet] 11/13: remove duplication MQ options, make conversation build, gnunet, 2019/07/21