Browse Source

MT#55283 remove unused return value

Change-Id: Ifcd7cd0d2677f1c62f20da7b4529da1c2a7e68e5
pull/1870/head
Richard Fuchs 1 year ago
parent
commit
39069a7457
1 changed files with 10 additions and 8 deletions
  1. +10
    -8
      daemon/sdp.c

+ 10
- 8
daemon/sdp.c View File

@ -2019,19 +2019,21 @@ void sdp_streams_clear(sdp_streams_q *q) {
t_queue_clear_full(q, sp_free); t_queue_clear_full(q, sp_free);
} }
static int print_format_str(GString *s, struct call_media *cm) {
static void print_format_str(GString *s, struct call_media *cm) {
if (!cm->format_str.s) if (!cm->format_str.s)
return 0;
return;
g_string_append_len(s, cm->format_str.s, cm->format_str.len); g_string_append_len(s, cm->format_str.s, cm->format_str.len);
return 0;
return;
} }
static int print_codec_list(GString *s, struct call_media *media) {
if (!proto_is_rtp(media->protocol))
return print_format_str(s, media);
static void print_codec_list(GString *s, struct call_media *media) {
if (!proto_is_rtp(media->protocol)) {
print_format_str(s, media);
return;
}
if (media->codecs.codec_prefs.length == 0) if (media->codecs.codec_prefs.length == 0)
return 0; // legacy protocol or usage error
return; // legacy protocol or usage error
for (__auto_type l = media->codecs.codec_prefs.head; l; l = l->next) { for (__auto_type l = media->codecs.codec_prefs.head; l; l = l->next) {
rtp_payload_type *pt = l->data; rtp_payload_type *pt = l->data;
@ -2039,7 +2041,7 @@ static int print_codec_list(GString *s, struct call_media *media) {
g_string_append_c(s, ' '); g_string_append_c(s, ' ');
g_string_append_printf(s, "%u", pt->payload_type); g_string_append_printf(s, "%u", pt->payload_type);
} }
return 0;
return;
} }
static void insert_codec_parameters(GString *s, struct call_media *cm, static void insert_codec_parameters(GString *s, struct call_media *cm,


Loading…
Cancel
Save