From 5e62bc5ee2946eca32a97d6064415165d3dc5071 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 --- 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,