Browse code

core: parse via - fixed whitespacing

(cherry picked from commit 01664d1d82dcfe952fce29033b4fcd5e44cf2319)
(cherry picked from commit 19901d0cdb6cf06a84315c19a27986bca7a05025)
(cherry picked from commit b5ae51af479d4e54e5d8c3f5e85908e68183e9d4)

Daniel-Constantin Mierla authored on 31/05/2021 10:05:01 • Henning Westerholt committed on 22/10/2021 11:55:40
Showing 1 changed files
... ...
@@ -13,8 +13,8 @@
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 14
  * GNU General Public License for more details.
15 15
  *
16
- * You should have received a copy of the GNU General Public License 
17
- * along with this program; if not, write to the Free Software 
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program; if not, write to the Free Software
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 19
  */
20 20
 
... ...
@@ -32,11 +32,11 @@
32 32
 struct sip_msg;
33 33
 
34 34
 /* via param types
35
- * WARNING: keep in sync with parse_via.c FIN_HIDDEN... 
35
+ * WARNING: keep in sync with parse_via.c FIN_HIDDEN...
36 36
  * and with tm/sip_msg.c via_body_cloner
37 37
  */
38 38
 enum {
39
-	PARAM_HIDDEN=230, PARAM_TTL, PARAM_BRANCH, 
39
+	PARAM_HIDDEN=230, PARAM_TTL, PARAM_BRANCH,
40 40
 	PARAM_MADDR, PARAM_RECEIVED, PARAM_RPORT, PARAM_I, PARAM_ALIAS,
41 41
 #ifdef USE_COMP
42 42
 	PARAM_COMP,
... ...
@@ -60,12 +60,12 @@ typedef struct via_param {
60 60
 
61 61
 
62 62
 /* Format: name/version/transport host:port;params comment */
63
- /* WARNING: keep in sync with tm/sip_msg.c via_body_cloner */
64
-typedef struct via_body { 
63
+/* WARNING: keep in sync with tm/sip_msg.c via_body_cloner */
64
+typedef struct via_body {
65 65
 	int error;
66 66
 	str hdr;   /* Contains "Via" or "v" */
67 67
 	str name;
68
-	str version;   
68
+	str version;
69 69
 	str transport;
70 70
 	str host;
71 71
 	short proto; /* transport */
... ...
@@ -80,7 +80,7 @@ typedef struct via_body {
80 80
 	struct via_param* param_lst;  /* list of parameters*/
81 81
 	struct via_param* last_param; /*last via parameter, internal use*/
82 82
 
83
-	     /* shortcuts to "important" params*/
83
+	/* shortcuts to "important" params*/
84 84
 	struct via_param* branch;
85 85
 	str tid; /* transaction id, part of branch */
86 86
 	struct via_param* received;
... ...
@@ -90,8 +90,8 @@ typedef struct via_body {
90 90
 #ifdef USE_COMP
91 91
 	struct via_param* comp; /* see rfc3486 */
92 92
 #endif
93
-	struct via_body* next; /* pointer to next via body string if
94
-				  compact via or null */
93
+	struct via_body* next; /* pointer to next via body string
94
+							if compact via or null */
95 95
 } via_body_t;
96 96
 
97 97