[svn-commits] mmichelson: branch mmichelson/rls-subscribe r417731 - /team/mmichelson/rls-su...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Jul 1 17:13:14 CDT 2014
Author: mmichelson
Date: Tue Jul 1 17:13:12 2014
New Revision: 417731
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417731
Log:
Kill trailing whitespace.
Modified:
team/mmichelson/rls-subscribe/res/res_pjsip_pubsub.c
Modified: team/mmichelson/rls-subscribe/res/res_pjsip_pubsub.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/rls-subscribe/res/res_pjsip_pubsub.c?view=diff&rev=417731&r1=417730&r2=417731
==============================================================================
--- team/mmichelson/rls-subscribe/res/res_pjsip_pubsub.c (original)
+++ team/mmichelson/rls-subscribe/res/res_pjsip_pubsub.c Tue Jul 1 17:13:12 2014
@@ -595,7 +595,7 @@
static int exceptional_accept(const pj_str_t *accept)
{
int i;
-
+
for (i = 0; i < ARRAY_LEN(accept_exceptions); ++i) {
if (!pj_strcmp2(accept, accept_exceptions[i])) {
return 1;
@@ -650,14 +650,14 @@
* \brief Helper function for retrieving a resource list for a given event.
*
* This will retrieve a resource list that corresponds to the resource and event provided.
- *
+ *
* \param resource The name of the resource list to retrieve
* \param event The expected event name on the resource list
*/
static struct resource_list *retrieve_resource_list(const char *resource, const char *event)
{
struct resource_list *list;
-
+
list = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "resource_list", resource);
if (!list) {
return NULL;
@@ -730,7 +730,7 @@
* \brief Determine if this resource has been visited already
*
* See \ref build_resource_tree for more information
- *
+ *
* \param resource The resource currently being visited
* \param visited The resources that have previously been visited
*/
@@ -1005,7 +1005,7 @@
for (i = 0; i < AST_VECTOR_SIZE(&parent_resource->children); ++i) {
struct ast_sip_subscription *sub;
-
+
sub = allocate_subscription(handler, endpoint, resource,
AST_SIP_NOTIFIER, SIP_SUBSCRIPTION_VIRTUAL);
if (!sub) {
@@ -1046,8 +1046,8 @@
struct ast_sip_pubsub_body_generator *generator, struct resource_tree *tree)
{
struct ast_sip_subscription *sub;
-
- /* Start by creating the root subscription. It's the only real subscription.
+
+ /* Start by creating the root subscription. It's the only real subscription.
* XXX Since this is the root of a subscription tree, it should actually use the
* multipart RLMI generator instead if this is a list. This will be handled in
* ASTERISK-23869 or ASTERISK-23867
@@ -1509,9 +1509,9 @@
static int sip_subscription_accept(struct ast_sip_subscription *sub, pjsip_rx_data *rdata, int response)
{
pjsip_hdr res_hdr;
-
+
ast_assert(sub->type == SIP_SUBSCRIPTION_REAL);
-
+
/* If this is a persistence recreation the subscription has already been accepted */
if (ast_sip_mod_data_get(rdata->endpt_info.mod_data, pubsub_module.id, MOD_DATA_PERSISTENCE)) {
return 0;
@@ -2911,7 +2911,7 @@
case TEST_EXECUTE:
break;
}
-
+
list_1 = create_resource_list(test, "foo", "test", resources_1, ARRAY_LEN(resources_1));
if (!list_1) {
return AST_TEST_FAIL;
More information about the svn-commits
mailing list