[PATCH] osmo-mgw[master]: mgcp_client: cosmetic: clean up SDP params parsing

2018-02-21 Thread Neels Hofmeyr
mgcp_client: cosmetic: clean up SDP params parsing The mgcp_response_parse_params() is in a jumble. Straighten out these cosmetic issues: - Move assertion of r->body close to its first use. - Instead of a talloc_zero and osmo_strlcpy dance, simply use talloc_strdup(). - Drop the first unused

[PATCH] osmo-mgw[master]: mgcp_client: cosmetic: clean up SDP params parsing

2018-02-21 Thread Neels Hofmeyr
Review at https://gerrit.osmocom.org/6639 mgcp_client: cosmetic: clean up SDP params parsing The mgcp_response_parse_params() is in a jumble. Straighten out these cosmetic issues: - Move assertion of r->body close to its first use. - Instead of a talloc_zero and osmo_strlcpy dance, simply use