From 83222a36d7d0734291941c60bde6c0f6bd0d88ad Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 4 Oct 2023 14:32:36 +0200 Subject: [PATCH] MT#58441 Declare attrs in `sdp_attribute` separately Because the attribute parts variables are declared in one signle row, these (popping up) commentaries in other code parts, show only the first code comment for all of the variables, which makes the code reading confusing. In order to fix that, declare each one separately, that gives own code (popping up) commentary per variable. Change-Id: Iddb94b989844b997055be70a526cca59ab2fddf3 (cherry picked from commit 5e62bc5ee2946eca32a97d6064415165d3dc5071) (cherry picked from commit 3938d014f86c09163c441c7c371f43f926423b82) --- daemon/sdp.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index edcc3d4ca..f0042d395 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -211,13 +211,15 @@ struct attribute_t38faxudpecdepth { int maxred; }; -struct sdp_attribute { /* example: a=rtpmap:8 PCMA/8000 */ - str full_line, /* including a= and \r\n */ - line_value, /* without a= and without \r\n */ - name, /* just "rtpmap" */ - value, /* just "8 PCMA/8000" */ - key, /* "rtpmap:8" */ - param; /* "PCMA/8000" */ +struct sdp_attribute { + /* example: a=rtpmap:8 PCMA/8000 */ + + str full_line; /* including a= and \r\n */ + str line_value; /* without a= and without \r\n */ + str name; /* just "rtpmap" */ + str value; /* just "8 PCMA/8000" */ + str key; /* "rtpmap:8" */ + str param; /* "PCMA/8000" */ enum { ATTR_OTHER = 0,