aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cadet/cadet_api.c18
1 files 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 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -932,21 +932,17 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel)
932 */ 932 */
933const union GNUNET_CADET_ChannelInfo * 933const union GNUNET_CADET_ChannelInfo *
934GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, 934GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel,
935 enum GNUNET_CADET_ChannelInfoOption option, 935 enum GNUNET_CADET_ChannelInfoOption option,
936 ...) 936 ...)
937{ 937{
938 static int bool_flag;
939
940 switch (option) 938 switch (option)
941 { 939 {
942 case GNUNET_CADET_OPTION_PEER: 940 case GNUNET_CADET_OPTION_PEER:
943 return (const union GNUNET_CADET_ChannelInfo *) &channel->peer; 941 return (const union GNUNET_CADET_ChannelInfo *) &channel->peer;
944 break; 942 default:
945 default: 943 GNUNET_break (0);
946 GNUNET_break (0); 944 return NULL;
947 return NULL;
948 } 945 }
949 return (const union GNUNET_CADET_ChannelInfo *) &channel->peer;
950} 946}
951 947
952 948