Skip to content

Commit

Permalink
presence: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent e3a8d1b commit ccba052
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/lib/presence/domain_maintainer.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down Expand Up @@ -99,7 +99,7 @@ static notifier_domain_t *add_domain_nolock(
/* notifier_domain_t *find_notifier_domain(domain_maintainer_t *dm, const str_t *name)
{
notifier_domain_t *d = NULL;
if (!dm) return NULL;
cds_mutex_lock(&dm->mutex);
d = find_domain_nolock(dm, name);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/domain_maintainer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/lpidf.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/lpidf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
14 changes: 7 additions & 7 deletions src/lib/presence/notifier.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down Expand Up @@ -43,17 +43,17 @@ extern "C"
void unregister_notifier(notifier_domain_t *domain, notifier_t *info);

/** accepts subscription (internally adds reference to it), thus it can
* be handled by notifier which called this function
* MUST be called in notifier's subscribe function, otherwise the
* subscription can NOT be accepted
* be handled by notifier which called this function
* MUST be called in notifier's subscribe function, otherwise the
* subscription can NOT be accepted
*
* Note: only for asynchonously processed subscriptions (synchronous
* Note: only for asynchonously processed subscriptions (synchronous
* don't need it) */
void accept_subscription(qsa_subscription_t *s);

/** releases accepted subscription - MUST be called on all accepted
/** releases accepted subscription - MUST be called on all accepted
* subscriptions (only on them!) to be freed from memory !
* Note: only for asynchonously processed subscriptions (synchronous
* Note: only for asynchonously processed subscriptions (synchronous
* don't need it) */
void release_subscription(qsa_subscription_t *s);

Expand Down
12 changes: 6 additions & 6 deletions src/lib/presence/notifier_domain.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down Expand Up @@ -226,15 +226,15 @@ static void free_subscription(qsa_subscription_t *s)
/*static void add_server_subscription(notifier_t *n, qsa_subscription_t *s)
{
server_subscription_t server_s;
server_s.notifier_data = NULL;
if (n->subscribe(n, &s->record_id, s, &server_s.notifier_data) == 0) {
server_s.notifier = n;
vector_add(&s->server_subscriptions, &server_s);
}
else ERROR_LOG("subscription not accepted by notifier %p\n", n);
}
static void remove_notifier_from_subscription(qsa_subscription_t *s, notifier_t *n)
{
int cnt,i;
Expand Down Expand Up @@ -286,7 +286,7 @@ void destroy_notifier_domain(notifier_domain_t *domain)
qsa_content_type_t *c, *tmp;

/* this function is always called only if no only one reference
* to domain exists (see domain maintainer), this should mean, that
* to domain exists (see domain maintainer), this should mean, that
* all subscribers freed their subscriptions */

lock_notifier_domain(domain);
Expand Down Expand Up @@ -348,7 +348,7 @@ notifier_t *register_notifier(notifier_domain_t *domain, const str_t *package,

DOUBLE_LINKED_LIST_ADD(p->first_notifier, p->last_notifier, info);

/* go through all subscriptions for package and
/* go through all subscriptions for package and
* add them to this notifier */
s = p->first_subscription;
while(s) {
Expand All @@ -374,7 +374,7 @@ void unregister_notifier(notifier_domain_t *domain, notifier_t *info)

p = info->package;
if(p) {
/* accepted subscriptions MUST be removed by the notifier
/* accepted subscriptions MUST be removed by the notifier
* how to solve this ? */

/* qsa_subscription_t *s;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/presence/notifier_domain.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down Expand Up @@ -46,7 +46,7 @@ extern "C"
struct _notifier_domain_t;
typedef struct _notifier_domain_t notifier_domain_t;

/* data hold by subscriber for the time of subscription duration
/* data hold by subscriber for the time of subscription duration
* (from subscribe to unsubscribe; after calling unsubscribe can
* be destroyed contents of them) */
typedef struct _qsa_subscription_data_t
Expand Down
4 changes: 2 additions & 2 deletions src/lib/presence/pidf.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*
* PIDF parser
*
* $Id$
*
*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/pidf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/pres_doc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/pres_doc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/presence/qsa.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down Expand Up @@ -40,7 +40,7 @@ int qsa_initialize()
{
int res = 0;

/* initialization should be called from one process/thread
/* initialization should be called from one process/thread
* it is not synchronized because it is impossible ! */
if(!init) {
init = (init_data_t *)cds_malloc(sizeof(init_data_t));
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/qsa.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/presence/subscriber.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down Expand Up @@ -37,7 +37,7 @@ extern "C"
/* If a notifier publishing watched state registers after subscribe
* call, it receives the subscription automatically too! */
/*qsa_subscription_t *subscribe(notifier_domain_t *domain,
/*qsa_subscription_t *subscribe(notifier_domain_t *domain,
qsa_subscription_t *params);*/
qsa_subscription_t *subscribe(notifier_domain_t *domain, str_t *package,
qsa_subscription_data_t *data);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/subscription_info.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/xml_utils.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/xml_utils.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down
8 changes: 4 additions & 4 deletions src/lib/presence/xpidf.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down Expand Up @@ -43,15 +43,15 @@ static void doc_add_tuple_note(dstring_t *buf, presence_note_t *n)
/*static void doc_add_note(dstring_t *buf, presentity_info_t *p, presence_note_t *n)
{
DEBUG_LOG("doc_add_note()\n");
dstr_append_zt(buf, "\t<note");
if (n->lang.len > 0) {
dstr_append_zt(buf, " lang=\"");
dstr_append_str(buf, &n->lang);
dstr_append_zt(buf, "\"");
}
dstr_append_zt(buf, ">");
dstr_append_str(buf, &n->value);
dstr_append_str(buf, &n->value);
dstr_append_zt(buf, "</note>\r\n");
}*/

Expand Down Expand Up @@ -123,7 +123,7 @@ static void doc_add_presentity(dstring_t *buf, presentity_info_t *p)
t = t->next;
}

/*
/*
n = p->first_note;
while (n) {
doc_add_note(buf, p, n);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/presence/xpidf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2005 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
Expand Down

0 comments on commit ccba052

Please sign in to comment.