Jelajahi Sumber

presence: removed trailing spaces

Daniel-Constantin Mierla 1 tahun lalu
induk
melakukan
ccba052086

+ 2 - 2
src/lib/presence/domain_maintainer.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.
@@ -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);

+ 1 - 1
src/lib/presence/domain_maintainer.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 1 - 1
src/lib/presence/lpidf.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 1 - 1
src/lib/presence/lpidf.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 7 - 7
src/lib/presence/notifier.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.
@@ -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);
 

+ 6 - 6
src/lib/presence/notifier_domain.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.
@@ -226,7 +226,7 @@ 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;
@@ -234,7 +234,7 @@ static void free_subscription(qsa_subscription_t *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;
@@ -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);
@@ -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) {
@@ -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;

+ 2 - 2
src/lib/presence/notifier_domain.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.
@@ -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

+ 2 - 2
src/lib/presence/pidf.c

@@ -1,8 +1,8 @@
-/* 
+/*
  * PIDF parser
  *
  * $Id$
- * 
+ *
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 1 - 1
src/lib/presence/pidf.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 1 - 1
src/lib/presence/pres_doc.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 1 - 1
src/lib/presence/pres_doc.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 2 - 2
src/lib/presence/qsa.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.
@@ -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));

+ 1 - 1
src/lib/presence/qsa.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 2 - 2
src/lib/presence/subscriber.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.
@@ -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);

+ 1 - 1
src/lib/presence/subscription_info.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 1 - 1
src/lib/presence/xml_utils.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 1 - 1
src/lib/presence/xml_utils.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.

+ 4 - 4
src/lib/presence/xpidf.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.
@@ -43,7 +43,7 @@ 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=\"");
@@ -51,7 +51,7 @@ static void doc_add_tuple_note(dstring_t *buf, presence_note_t *n)
 		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");
 }*/
 
@@ -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);

+ 1 - 1
src/lib/presence/xpidf.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * This file is part of ser, a free SIP server.