From ce3d56920b15facbb64b3caf0d823a3f57c0dded Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Fri, 22 Dec 2017 09:14:07 -0500 Subject: Remove as much trailing whitespace as possible. Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0 --- res/res_pjsip/location.c | 1 - res/res_pjsip/pjsip_global_headers.c | 4 ++-- res/res_pjsip/pjsip_options.c | 2 +- res/res_pjsip/pjsip_session.c | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'res/res_pjsip') diff --git a/res/res_pjsip/location.c b/res/res_pjsip/location.c index 2bd40e84f..40490b255 100644 --- a/res/res_pjsip/location.c +++ b/res/res_pjsip/location.c @@ -1347,4 +1347,3 @@ int ast_sip_destroy_sorcery_location(void) return 0; } - diff --git a/res/res_pjsip/pjsip_global_headers.c b/res/res_pjsip/pjsip_global_headers.c index 501f5f523..4de28b586 100644 --- a/res/res_pjsip/pjsip_global_headers.c +++ b/res/res_pjsip/pjsip_global_headers.c @@ -55,7 +55,7 @@ struct header { static struct header *alloc_header(const char *name, const char *value) { struct header *alloc; - + alloc = ast_calloc_with_stringfields(1, struct header, 32); if (!alloc) { @@ -139,7 +139,7 @@ static int add_header(struct header_list *headers, const char *name, const char } AST_RWLIST_WRLOCK(headers); - if (replace) { + if (replace) { remove_header(headers, name); } if (to_add) { diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c index 1eafb4a7e..a0352a6fb 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -1281,7 +1281,7 @@ int ast_sip_format_contact_ami(void *obj, void *arg, int flags) astman_append(ami->s, "%s\r\n", ast_str_buffer(buf)); ami->count++; - + ast_free(buf); ao2_cleanup(status); return 0; diff --git a/res/res_pjsip/pjsip_session.c b/res/res_pjsip/pjsip_session.c index 7460e0a2b..074ec4e0b 100644 --- a/res/res_pjsip/pjsip_session.c +++ b/res/res_pjsip/pjsip_session.c @@ -118,4 +118,3 @@ int ast_sip_session_add_supplements(struct ast_sip_session *session) return 0; } - -- cgit v1.2.3