Browse Source

MT#55283 further compiler warning fixes

for #1690

Follow up to 37d7762f

Change-Id: Id58204db5a733b3d821cbef855fac72451484b41
(cherry picked from commit 3e81cfa351)
pull/1736/head
Richard Fuchs 2 years ago
parent
commit
7c743edc2e
2 changed files with 2 additions and 4 deletions
  1. +1
    -2
      daemon/sdp.c
  2. +1
    -2
      lib/str.h

+ 1
- 2
daemon/sdp.c View File

@ -2891,9 +2891,8 @@ int sdp_create(str *out, struct call_monologue *monologue, struct sdp_ng_flags *
print_sdp_media_section(s, media, NULL, flags, rtp_ps_link, true, false);
}
out->s = s->str;
out->len = s->len;
g_string_free(s, FALSE);
out->s = g_string_free(s, FALSE);
return 0;
err:
if (s)


+ 1
- 2
lib/str.h View File

@ -320,9 +320,8 @@ INLINE str *g_string_free_str(GString *gs) {
assert(gs->len >= pl);
assert(memcmp(gs->str, STR_MALLOC_PADDING, pl) == 0);
ret = (void *) gs->str;
ret->s = gs->str + pl;
ret->len = gs->len - pl;
g_string_free(gs, FALSE);
ret->s = g_string_free(gs, FALSE) + pl;
return ret;
}
INLINE int str_memcmp(const str *s, void *m) {


Loading…
Cancel
Save