Ver código fonte

core: removed trailing spaces

Daniel-Constantin Mierla 1 ano atrás
pai
commit
4134390670
100 arquivos alterados com 308 adições e 308 exclusões
  1. 1 1
      src/core/action.c
  2. 5 5
      src/core/atomic/atomic_alpha.h
  3. 10 10
      src/core/atomic/atomic_arm.h
  4. 7 7
      src/core/atomic/atomic_common.h
  5. 4 4
      src/core/atomic/atomic_mips2.h
  6. 3 3
      src/core/atomic/atomic_native.h
  7. 3 3
      src/core/atomic/atomic_ppc.h
  8. 3 3
      src/core/atomic/atomic_sparc.h
  9. 4 4
      src/core/atomic/atomic_sparc64.h
  10. 5 5
      src/core/atomic/atomic_unknown.h
  11. 4 4
      src/core/atomic/atomic_x86.h
  12. 1 1
      src/core/atomic_ops.c
  13. 21 21
      src/core/atomic_ops.h
  14. 1 1
      src/core/atomic_ops_init.h
  15. 6 6
      src/core/basex.h
  16. 1 1
      src/core/bit_count.c
  17. 1 1
      src/core/bit_scan.c
  18. 2 2
      src/core/bit_scan.h
  19. 3 3
      src/core/bit_test.h
  20. 2 2
      src/core/cfg/cfg_struct.h
  21. 2 2
      src/core/cfg_parser.c
  22. 1 1
      src/core/cfg_parser.h
  23. 2 2
      src/core/char_msg_val.h
  24. 7 7
      src/core/comp_defs.h
  25. 4 4
      src/core/compiler_opt.h
  26. 2 2
      src/core/config.h
  27. 2 2
      src/core/core_cmd.h
  28. 4 4
      src/core/core_stats.h
  29. 2 2
      src/core/crc.c
  30. 5 5
      src/core/crypto/md5utils.c
  31. 4 4
      src/core/crypto/md5utils.h
  32. 2 2
      src/core/data_lump.h
  33. 2 2
      src/core/data_lump_rpl.c
  34. 2 2
      src/core/data_lump_rpl.h
  35. 8 8
      src/core/dns_cache.c
  36. 1 1
      src/core/dns_cache.h
  37. 2 2
      src/core/dns_func.c
  38. 6 6
      src/core/dns_func.h
  39. 2 2
      src/core/dns_wrappers.h
  40. 1 1
      src/core/dst_blocklist.c
  41. 1 1
      src/core/endianness.c
  42. 4 4
      src/core/endianness.h
  43. 4 4
      src/core/fix_lumps.h
  44. 2 2
      src/core/flags.c
  45. 2 2
      src/core/flags.h
  46. 2 2
      src/core/futexlock.h
  47. 7 7
      src/core/hash_func.c
  48. 5 5
      src/core/hashes.h
  49. 2 2
      src/core/id.c
  50. 4 4
      src/core/id.h
  51. 1 1
      src/core/io_wait.c
  52. 3 3
      src/core/local_timer.c
  53. 3 3
      src/core/local_timer.h
  54. 3 3
      src/core/lock_alloc.h
  55. 1 1
      src/core/lock_ops.c
  56. 8 8
      src/core/lock_ops.h
  57. 2 2
      src/core/lock_ops_init.h
  58. 4 4
      src/core/mem/dl_malloc.c
  59. 3 3
      src/core/mem/dl_malloc.h
  60. 5 5
      src/core/mem/ll_malloc.c
  61. 1 1
      src/core/mem/ll_malloc.h
  62. 2 2
      src/core/mem/memtest.c
  63. 1 1
      src/core/mem/pkg.c
  64. 1 1
      src/core/mem/pkg.h
  65. 3 3
      src/core/mem/src_loc.h
  66. 4 4
      src/core/mod_fix.c
  67. 4 4
      src/core/msg_translator.c
  68. 2 2
      src/core/msg_translator.h
  69. 1 1
      src/core/nonsip_hooks.c
  70. 1 1
      src/core/nonsip_hooks.h
  71. 2 2
      src/core/parser/contact/contact.h
  72. 2 2
      src/core/parser/contact/parse_contact.h
  73. 3 3
      src/core/parser/digest/digest.h
  74. 2 2
      src/core/parser/digest/digest_keys.h
  75. 4 4
      src/core/parser/digest/digest_parser.c
  76. 2 2
      src/core/parser/digest/digest_parser.h
  77. 2 2
      src/core/parser/digest/param_parser.c
  78. 2 2
      src/core/parser/digest/param_parser.h
  79. 2 2
      src/core/parser/hf.h
  80. 2 2
      src/core/parser/parse_addr_spec.h
  81. 3 3
      src/core/parser/parse_allow.h
  82. 6 6
      src/core/parser/parse_body.c
  83. 2 2
      src/core/parser/parse_body.h
  84. 3 3
      src/core/parser/parse_content.h
  85. 2 2
      src/core/parser/parse_cseq.h
  86. 2 2
      src/core/parser/parse_def.h
  87. 2 2
      src/core/parser/parse_disposition.c
  88. 2 2
      src/core/parser/parse_disposition.h
  89. 3 3
      src/core/parser/parse_diversion.h
  90. 2 2
      src/core/parser/parse_event.h
  91. 2 2
      src/core/parser/parse_expires.h
  92. 2 2
      src/core/parser/parse_from.h
  93. 1 1
      src/core/parser/parse_hname2.h
  94. 3 3
      src/core/parser/parse_methods.h
  95. 3 3
      src/core/parser/parse_nameaddr.c
  96. 3 3
      src/core/parser/parse_nameaddr.h
  97. 2 2
      src/core/parser/parse_option_tags.h
  98. 3 3
      src/core/parser/parse_param.h
  99. 3 3
      src/core/parser/parse_ppi_pai.c
  100. 2 2
      src/core/parser/parse_ppi_pai.h

+ 1 - 1
src/core/action.c

@@ -1268,7 +1268,7 @@ int do_action(struct run_act_ctx *h, struct action *a, struct sip_msg *msg)
 					if(sjt->rest.cond[i] == v) {
 						if(likely(sjt->rest.jump[i])) {
 							ret = run_actions(h, sjt->rest.jump[i], msg);
-							h->run_flags &= ~BREAK_R_F; /* catch breaks, but 
+							h->run_flags &= ~BREAK_R_F; /* catch breaks, but
 														   let returns pass */
 						}
 						goto skip;

+ 5 - 5
src/core/atomic/atomic_alpha.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -14,16 +14,16 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/** 
+/**
  * @file
  * @brief Atomic operations and memory barriers (alpha specific)
  *
  * Atomic operations and memory barriers (alpha specific)
  * \warning atomic ops do not include memory barriers, see atomic_ops.h
  * for more details.
- * 
+ *
  * Config defines:
- * - NOSMP 
+ * - NOSMP
  * - __CPU_alpha
  * @ingroup atomic
  */
@@ -88,7 +88,7 @@
 #endif /* NOSMP */
 
 
-/* main asm block 
+/* main asm block
  * if store failes, jump _forward_ (optimization, because back jumps are
  *  always predicted to happen on alpha )*/
 #define ATOMIC_ASM_OP00_int(op) \

+ 10 - 10
src/core/atomic/atomic_arm.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,15 +17,15 @@
 /**
  * @file
  * @brief Atomic ops and memory barriers for ARM (>= v3)
- * 
+ *
  * Atomic ops and memory barriers for ARM architecture (starting from version 3)
  * see atomic_ops.h for more info.
- * 
+ *
  * Config defines:
  * - NOSMP
  * - __CPU_arm
  * - __CPU_arm6 - armv6 support (supports atomic ops via ldrex/strex)
- * - __CPU_arm7 - armv7 support 
+ * - __CPU_arm7 - armv7 support
  * @ingroup atomic
  */
 
@@ -96,7 +96,7 @@
 #include "atomic_unknown.h"
 #endif
 
-/* main asm block 
+/* main asm block
  *  use %0 as input and write the output in %1*/
 #define ATOMIC_ASM_OP(op)          \
 	"1:   ldrex %0, [%3] \n\t"     \
@@ -105,7 +105,7 @@
 	"     cmp %0, #0 \n\t"         \
 	"     bne 1b \n\t"
 
-/* same as above but writes %4 instead of %1, and %0 will contain 
+/* same as above but writes %4 instead of %1, and %0 will contain
  * the prev. val*/
 #define ATOMIC_ASM_OP2(op)         \
 	"1:   ldrex %0, [%3] \n\t"     \
@@ -183,7 +183,7 @@
 
 /* cmpxchg: %5=old, %4=new_v, %3=var
  * if (*var==old) *var=new_v
- * returns the original *var (can be used to check if it succeeded: 
+ * returns the original *var (can be used to check if it succeeded:
  *  if old==cmpxchg(var, old, new_v) -> success
  */
 #define ATOMIC_CMPXCHG_DECL(NAME, P_TYPE)                                           \
@@ -401,14 +401,14 @@ inline static long mb_atomic_add_long(volatile long *v, long i)
  *  a spinlock, e.g:
  *          mov %r0, #0x1
  *       1: swp %r1, %r0, [&atomic_val]
- *          if (%r1 & 0x1) goto 1 # wait if first bit is 1 
+ *          if (%r1 & 0x1) goto 1 # wait if first bit is 1
  *          %r1>>=1  # restore the value (only 31 bits can be used )
- *          %r1=op (%r1, ...) 
+ *          %r1=op (%r1, ...)
  *          %r1<<=1   # shift back the value, such that the first bit is 0
  *          str %r1, [&atomic_val]  # write the value
  *
  * However only 31 bits could be used (=> atomic_*_int and atomic_*_long
- *  would still have to be lock based, since in these cases we guarantee all 
+ *  would still have to be lock based, since in these cases we guarantee all
  *  the bits)  and I'm not sure there would be a significant performance
  *  benefit when compared with the fallback lock based version:
  *    lock(atomic_lock);

+ 7 - 7
src/core/atomic/atomic_common.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,7 +17,7 @@
 /**
  * @defgroup atomic Kamailio atomic operations
  * @brief  Kamailio atomic operations and memory barriers support
- * 
+ *
  * Kamailio atomic operations and memory barriers support for different CPU
  * architectures implemented in assembler. It also provides some generic
  * fallback code for architectures not currently supported.
@@ -26,7 +26,7 @@
 /**
  * @file
  * @brief Common part for all the atomic operations
- * 
+ *
  * Common part for all the atomic operations (atomic_t and common operations)
  * see atomic_ops.h for more info.
  * @ingroup atomic
@@ -37,7 +37,7 @@
 
 /**
  * @brief atomic_t defined as a struct to easily catch non atomic operations on it.
- * 
+ *
  * atomic_t defined as a struct to easily catch non atomic operations on it,
  * e.g. atomic_t foo; foo++  will generate a compile error.
  */
@@ -47,12 +47,12 @@ typedef struct
 } atomic_t;
 
 
-/** 
+/**
  * @name Atomic load and store operations
  * Atomic store and load operations are atomic on all cpus, note however that they
- * don't include memory barriers so if you want to use atomic_{get,set} 
+ * don't include memory barriers so if you want to use atomic_{get,set}
  * to implement mutexes you must use the mb_* versions or explicitely use
- * the barriers 
+ * the barriers
  */
 
 /*@{ */

+ 4 - 4
src/core/atomic/atomic_mips2.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -14,10 +14,10 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/** 
- * @file 
+/**
+ * @file
  * @brief Atomic operations and memory barriers (MIPS isa 2 and MIPS64 specific)
- * 
+ *
  * Atomic operations and memory barriers (MIPS isa 2 and MIPS64 specific)
  * \warning atomic ops do not include memory barriers, see atomic_ops.h for
  * more details.

+ 3 - 3
src/core/atomic/atomic_native.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,12 +17,12 @@
 /**
  * @file
  * @brief Native (asm) atomic operations and memory barriers
- * 
+ *
  * Native (assembler) atomic operations and memory barriers.
  * \warning atomic ops do not include memory barriers, see atomic_ops.h for
  * more info. Expects atomic_t to be defined (#include "atomic_common.h")
  *
- * Config defines:   
+ * Config defines:
  * - CC_GCC_LIKE_ASM  - the compiler support gcc style inline asm
  * - NOSMP - the code will be a little faster, but not SMP safe
  * - __CPU_i386, __CPU_x86_64, X86_OOSTORE - see atomic_x86.h

+ 3 - 3
src/core/atomic/atomic_ppc.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,10 +17,10 @@
 /**
  * @file
  * @brief Atomic operations and memory barriers (PowerPC and PowerPC64 versions)
- * 
+ *
  * Atomic operations and memory barriers (PowerPC and PowerPC64 versions)
  * \warning atomic ops do not include memory barriers see atomic_ops.h for
- * more details. 
+ * more details.
  * \warning not tested on ppc64
  *
  * Config defines:

+ 3 - 3
src/core/atomic/atomic_sparc.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,11 +17,11 @@
 /**
  * @file
  * @brief Memory barriers for SPARC32 ( version < v 9))
- * 
+ *
  * Memory barriers for SPARC32 ( version < v 9)), see atomic_ops.h for more
  * details.
  *
- * Config defines: 
+ * Config defines:
  * - NOSMP
  * @ingroup atomic
  */

+ 4 - 4
src/core/atomic/atomic_sparc64.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,7 +17,7 @@
 /**
  * @file
  * @brief Atomic operations and memory barriers (SPARC64 version, 32 and 64 bit modes)
- * 
+ *
  * Atomic operations and memory barriers (SPARC64 version, 32 and 64 bit modes)
  * \warning atomic ops do not include memory barriers see atomic_ops.h for
  * more details.
@@ -62,7 +62,7 @@
  *  (if the atomic ops on the specific arhitecture imply these barriers
  *   => these macros will be empty)
  *   Warning: these barriers don't force LoadLoad ordering between code
- *    before the lock/membar_enter_lock() and code 
+ *    before the lock/membar_enter_lock() and code
  *    after membar_leave_lock()/unlock()
  *
  *  Usage: lock(); membar_enter_lock(); .... ; membar_leave_lock(); unlock()
@@ -164,7 +164,7 @@
 		return RET_EXPR;                                        \
 	}
 
-/* same as above, but uses a short 1 op sequence 
+/* same as above, but uses a short 1 op sequence
  * %2 (or %1) is var, %0 is  v and return (ret)*/
 #define ATOMIC_FUNC_DECL1_RAW(NAME, OP, P_TYPE, RET_TYPE, RET_EXPR) \
 	inline static RET_TYPE atomic_##NAME##_##P_TYPE(                \

+ 5 - 5
src/core/atomic/atomic_unknown.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -22,7 +22,7 @@
  * (for architectures not yet supported via inline assembler).
  *
  * \warning atomic ops do not include memory barriers, see atomic_ops.h
- * for more details 
+ * for more details
  *
  * Config defines:
  * - NOSMP (membars are null in this case)
@@ -55,8 +55,8 @@ extern gen_lock_t *__membar_lock; /* init in atomic_ops.c */
 #define _membar_lock lock_get(__membar_lock)
 #define _membar_unlock lock_release(__membar_lock)
 
-/* memory barriers 
- *  not a known cpu -> fall back unlock/lock: safe but costly  (it should 
+/* memory barriers
+ *  not a known cpu -> fall back unlock/lock: safe but costly  (it should
  *  include a memory barrier effect)
  *  lock/unlock does not imply a full memory barrier effect (it allows mixing
  *   operations from before the lock with operations after the lock _inside_
@@ -241,7 +241,7 @@ ATOMIC_FUNC_DECL1_RET(add, *var += v; ret = *var, long, long, ret)
 
 
 /* memory barrier versions, the same as "normal" versions (since the
- *  locks act as membars), *  except fot * the set/get 
+ *  locks act as membars), *  except fot * the set/get
  */
 
 /* mb_atomic_{set,get} use membar() : if we're lucky we have membars

+ 4 - 4
src/core/atomic/atomic_x86.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,7 +17,7 @@
 /**
  * @file
  * @brief Atomic operations and memory barriers (x86 and x86_64/amd64 specific)
- * 
+ *
  * Atomic operations and memory barriers (x86 and x86_64/amd64 specific)
  * \warning atomic ops do not include memory barriers, see atomic_ops.h for more
  * details.
@@ -93,7 +93,7 @@
 	asm volatile( \
 					" lock; addq $0, 0(%%rsp) \n\t " \
 					: : : "memory" \
-				) 
+				)
 */
 #define membar() asm volatile(" mfence \n\t " : : : "memory")
 #define membar_read() asm volatile(" lfence \n\t " : : : "memory")
@@ -122,7 +122,7 @@
 	do {                 \
 	} while(0) /* really empty, not even a cc bar. */
 /* lock barrriers: empty, not needed on x86 or x86_64 (atomic ops already
- *  force the barriers if needed); the lock/unlock should already contain the 
+ *  force the barriers if needed); the lock/unlock should already contain the
  *  gcc do_not_cache barriers*/
 #define membar_enter_lock() \
 	do {                    \

+ 1 - 1
src/core/atomic_ops.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any

+ 21 - 21
src/core/atomic_ops.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -27,7 +27,7 @@
  * \page atomicops  Atomic operations and memory barriers
  *
  *  WARNING: atomic ops do not include memory barriers
- *  
+ *
  *  memory barriers:
  *  ----------------
  *
@@ -37,30 +37,30 @@
  *  void membar_depends() - read depends memory barrier, needed before using
  *                          the contents of a pointer (for now is needed only
  *                          on Alpha so on all other CPUs it will be a no-op)
- *                          For more info see: 
+ *                          For more info see:
  *                          http://lse.sourceforge.net/locking/wmbdd.html
  *                          http://www.linuxjournal.com/article/8212
  *
- *  void membar_enter_lock() - memory barrier function that should be 
+ *  void membar_enter_lock() - memory barrier function that should be
  *                             called after a lock operation (where lock is
  *                             an asm inline function that uses atomic store
  *                             operation on the lock var.). It is at most
  *                             a StoreStore|StoreLoad barrier, but could also
- *                             be empty if an atomic op implies a memory 
+ *                             be empty if an atomic op implies a memory
  *                             barrier on the specific arhitecture.
- *                             Example usage: 
+ *                             Example usage:
  *                               raw_lock(l); membar_enter_lock(); ...
- *  void membar_leave_lock() - memory barrier function that should be called 
+ *  void membar_leave_lock() - memory barrier function that should be called
  *                             before an unlock operation (where unlock is an
  *                             asm inline function that uses at least an atomic
- *                             store to on the lock var.). It is at most a 
+ *                             store to on the lock var.). It is at most a
  *                             LoadStore|StoreStore barrier (but could also be
  *                             empty, see above).
  *                             Example: raw_lock(l); membar_enter_lock(); ..
  *                                      ... critical section ...
  *                                      membar_leave_lock(); raw_unlock(l);
  *  void membar_atomic_op() - memory barrier that should be called if a memory
- *                            barrier is needed immediately after or 
+ *                            barrier is needed immediately after or
  *                            immediately before an atomic operation
  *                            (for example: atomic_inc(&i); membar_atomic_op()
  *                               instead of atomic_inc(&i); membar()).
@@ -68,17 +68,17 @@
  *                            and set (for them use membar_atomic_setget()).
  *                            Using membar_atomic_op() instead of membar() in
  *                            these cases will generate faster code on some
- *                            architectures (for now x86 and x86_64), where 
+ *                            architectures (for now x86 and x86_64), where
  *                            atomic operations act also as memory barriers.
  *                            Note that mb_atomic_<OP>(...) is equivalent to
  *                            membar_atomic_op(); atomic_<OP>(...) and in this
  *                            case the first form is preferred).
- * void membar_atomic_setget() - same as above but for atomic_set and 
+ * void membar_atomic_setget() - same as above but for atomic_set and
  *                            atomic_get (and not for any other atomic op.,
  *                            including atomic_get_and_set, for them use
  *                            membar_atomic_op()).
- *                            Note that mb_atomic_{get,set}(&i) is equivalent 
- *                            and preferred to membar_atomic_setget(); 
+ *                            Note that mb_atomic_{get,set}(&i) is equivalent
+ *                            and preferred to membar_atomic_setget();
  *                            atomic_{get,set}(&i) (it will generate faster
  *                            code on x86 and x86_64).
  * void membar_read_atomic_op() - like membar_atomic_op(), but acts only as
@@ -87,11 +87,11 @@
  *                            as a read barrier.
  * void membar_write_atomic_op() - like membar_atomic_op(), but acts only as
  *                            a write barrier.
- * void membar_write_atomic_setget() - like membar_atomic_setget() but acts 
+ * void membar_write_atomic_setget() - like membar_atomic_setget() but acts
  *                            only as a write barrier.
  *
  *
- *  Note: - properly using memory barriers is tricky, in general try not to 
+ *  Note: - properly using memory barriers is tricky, in general try not to
  *        depend on them. Locks include memory barriers, so you don't need
  *        them for writes/load already protected by locks.
  *        - membar_enter_lock() and membar_leave_lock() are needed only if
@@ -111,13 +111,13 @@
  *  void atomic_dec(atomic_t* v)
  *  int atomic_inc_and_test(atomic_t* v)     - returns 1 if the result is 0
  *  int atomic_dec_and_test(atomic_t* v)     - returns 1 if the result is 0
- *  void atomic_or (atomic_t* v, int mask)   - v->val|=mask 
+ *  void atomic_or (atomic_t* v, int mask)   - v->val|=mask
  *  void atomic_and(atomic_t* v, int mask)   - v->val&=mask
  *  int atomic_add(atomic_t* v, int i)       - v->val+=i; return v->val
  *  int atomic_cmpxchg(atomic_t* v, o, n)    - r=v->val; if (r==o) v->val=n;
  *                                             return r (old value)
  *
- * 
+ *
  * same ops, but with builtin memory barriers:
  *
  *  void mb_atomic_set(atomic_t* v, int i)      -  v->val=i
@@ -127,7 +127,7 @@
  *  void mb_atomic_dec(atomic_t* v)
  *  int mb_atomic_inc_and_test(atomic_t* v)  - returns 1 if the result is 0
  *  int mb_atomic_dec_and_test(atomic_t* v)  - returns 1 if the result is 0
- *  void mb_atomic_or(atomic_t* v, int mask - v->val|=mask 
+ *  void mb_atomic_or(atomic_t* v, int mask - v->val|=mask
  *  void mb_atomic_and(atomic_t* v, int mask)- v->val&=mask
  *  int mb_atomic_add(atomic_t* v, int i)    - v->val+=i; return v->val
  *  int mb_atomic_cmpxchg(atomic_t* v, o, n) - r=v->val; if (r==o) v->val=n;
@@ -150,7 +150,7 @@
  *                     inline asm
  *                   NOSMP - the code will be a little faster, but not SMP
  *                            safe
- *                   __CPU_i386, __CPU_x86_64, X86_OOSTORE - see 
+ *                   __CPU_i386, __CPU_x86_64, X86_OOSTORE - see
  *                       atomic/atomic_x86.h
  *                   __CPU_mips, __CPU_mips2, __CPU_mips64, MIPS_HAS_LLSC - see
  *                       atomic/atomic_mip2.h
@@ -160,11 +160,11 @@
  *                   __CPU_arm, __CPU_arm6, __CPU_arm7 - see atomic/atomic_arm.h
  *                   __CPU_alpha - see atomic/atomic_alpha.h
  */
-/* 
+/*
  * History:
  * --------
  *  2006-03-08  created by andrei
- *  2007-05-13  moved some of the decl. and includes into atomic_common.h and 
+ *  2007-05-13  moved some of the decl. and includes into atomic_common.h and
  *               atomic_native.h (andrei)
  */
 #ifndef __atomic_ops

+ 1 - 1
src/core/atomic_ops_init.h

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

+ 6 - 6
src/core/basex.h

@@ -36,7 +36,7 @@
  *  - base64_dec(src, src_len, dst, dst_len)    : decode from base64, standard  alphabet
  *  - base64_enc_len(len)                       : length needed to encode len bytes (macro)
  *  - base64_max_dec_len(len)                   : maximum length needed to decode len bytes (macro)
- *  - base64_dec_len(str, len)                  : size of the decoded str 
+ *  - base64_dec_len(str, len)                  : size of the decoded str
  *  - q_base64_enc(src, src_len, dst, dst_len)  : encode to special base64 alphabet (non standard)
  *  - q_base64_dec(src, src_len, dst, dst_len)  - decode from special non-standard base64 alphabet
  *
@@ -66,7 +66,7 @@
  * Defines:
  *  - BASE64_LOOKUP_TABLE/NO_BASE64_LOOKUP_TABLE : use (default)/don't use
  *     small lookup tables for conversions (faster in general).
- *  - BASE64_LOOKUP_LARGE    : use large lookup tables (2560 bytes for 
+ *  - BASE64_LOOKUP_LARGE    : use large lookup tables (2560 bytes for
  *    encoding and 256 bytes for decoding; without it 64 bytes are used for
  *    encoding and 85 bytes for decoding.
  *  - BASE64_LOOKUP_8K : use even larger lookup tables (8K for encoding and
@@ -75,7 +75,7 @@
  *
  *  - BASE16_LOOKUP_TABLE/NO_BASE16_LOOKUP_TABLE : use (default)/don't use
  *     small lookup tables for conversions (faster in general).
- *  - BASE16_LOOKUP_LARGE  : use large lookup tables (512 bytes for 
+ *  - BASE16_LOOKUP_LARGE  : use large lookup tables (512 bytes for
  *    encoding and 256 bytes for decoding
  *  - BASE16_READ_WHOLE_INTS : read an int at a time
  *
@@ -277,8 +277,8 @@ extern unsigned char _bx_ub64[0x54 + 1];
 
 #ifdef BASE16_READ_WHOLE_INTS
 
-/*! 
- * \params: 
+/*!
+ * \params:
  * \return: size used from the output buffer (dst) on success,
  *          -size_needed on error
  *
@@ -678,7 +678,7 @@ inline static int base64_dec(
 	end = src + slen - 4;
 	for(; src < end; src += 4, dst += 3) {
 #if 0
-		u=	(UNBASE64(src[0])<<18) | (UNBASE64(src[1])<<12) | 
+		u=	(UNBASE64(src[0])<<18) | (UNBASE64(src[1])<<12) |
 			(UNBASE64(src[2])<<6)  |  UNBASE64(src[3]);
 		dst[0]=u>>16;
 		dst[1]=u>>8;

+ 1 - 1
src/core/bit_count.c

@@ -15,7 +15,7 @@
  *
  */
 /*!
- * \file 
+ * \file
  * \brief Kamailio core ::
  * \ingroup core
  * Module: \ref core

+ 1 - 1
src/core/bit_scan.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2007 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any

+ 2 - 2
src/core/bit_scan.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2007 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -41,7 +41,7 @@
  *                  __CPU_x86, __CPU_x86_64,
  *                  ULONG_MAX (limits.h)
  */
-/* 
+/*
  * History:
  * --------
  *  2007-06-23  created by andrei

+ 3 - 3
src/core/bit_test.h

@@ -21,16 +21,16 @@
  *
  * Bit test functions:
  *  - int bit_test(int offset, unsigned int *addr)
- *      Returns the bit found at offset position 
+ *      Returns the bit found at offset position
  *      in a bitstring pointed by addr.
  *
  *  - int bit_test_and_set(int offset, unsigned int *addr)
- *      Returns the bit found at offset position 
+ *      Returns the bit found at offset position
  *      in a bitstring pointed by addr, and sets
  *      the bit at the given offset.
  *
  *  - int bit_test_and_reset(int offset, unsigned int *addr)
- *      Returns the bit found at offset position 
+ *      Returns the bit found at offset position
  *      in a bitstring pointed by addr, and resets
  *      the bit at the given offset.
  *

+ 2 - 2
src/core/cfg/cfg_struct.h

@@ -312,7 +312,7 @@ static inline void cfg_child_cb_free_item(cfg_child_cb_t *cb)
 
 /* Move the group handle to the specified group instance pointed by dst_ginst.
  * src_ginst shall point to the active group instance.
- * Both parameters can be NULL meaning that the src/dst config is the default, 
+ * Both parameters can be NULL meaning that the src/dst config is the default,
  * not an additional group instance.
  * The function executes all the per-child process callbacks which are different
  * in the two instances.
@@ -426,7 +426,7 @@ static inline void cfg_reset_handles(void)
 }
 
 /* sets the local cfg block to the active block
- * 
+ *
  * If your module forks a new process that implements
  * an infinite loop, put cfg_update() to the beginning of
  * the cycle to make sure, that subsequent function calls see the

+ 2 - 2
src/core/cfg_parser.c

@@ -17,7 +17,7 @@
  * details.
  *
  * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc., 
+ * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 /*!
@@ -31,7 +31,7 @@
  * See \ref ConfigEngine
  *
  * \page ConfigEngine
- * In file \ref cfg_parser.c 
+ * In file \ref cfg_parser.c
  * Configuration examples
  * - \ref ConfigExample1
  * - \ref ConfigExample2

+ 1 - 1
src/core/cfg_parser.h

@@ -17,7 +17,7 @@
  * details.
  *
  * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc., 
+ * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 

+ 2 - 2
src/core/char_msg_val.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2010 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -45,7 +45,7 @@ inline static int char_msg_val(struct sip_msg *msg, char *cv)
 		memset(cv, '0', MD5_LEN);
 		return 0;
 	}
-	/* to body is automatically parsed (via check_transactionquadruple / 
+	/* to body is automatically parsed (via check_transactionquadruple /
 	   parse_header), but the from body has to be parsed manually */
 	if(msg->from->parsed == 0) {
 		/* parse from body */

+ 7 - 7
src/core/comp_defs.h

@@ -13,17 +13,17 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 /*!
  * \file
- * \brief Kamailio core :: compatibility defs for emergency roll-back if things do not work 
- *      
- * \ingroup core 
- * Module: \ref core                    
- *  
+ * \brief Kamailio core :: compatibility defs for emergency roll-back if things do not work
+ *
+ * \ingroup core
+ * Module: \ref core
+ *
  * if that happens:
  * 	- a) define PRESERVE_ZT (affects most of parser)
  * 	- b) define DONT_REMOVE_ZT (affects first line)

+ 4 - 4
src/core/compiler_opt.h

@@ -26,18 +26,18 @@
  *
 \verbatim
  *   - likely(expr)         - branch predicition optimization - is more likely
- *                          that expr value will be 1 so optimize for this 
+ *                          that expr value will be 1 so optimize for this
  *                          case.
  *                          Example: if (likely(p!=NULL)) {... }
- *   - unlikely(expr)       - branch prediction optimization - is unlikely that 
+ *   - unlikely(expr)       - branch prediction optimization - is unlikely that
  *                          expr will be true, so optimize for this case
  *   - prefetch(addr)        - will prefetch addr. for reading
  *   - prefetch_w(addr)      - will prefetch addr. for writing
  *   - prefetch_loc_r(addr, loc) - prefetch for reading, data at addr has
  *                                no temporal locality (loc==0), a short
- *                                degree of temporal locality (loc==1), 
+ *                                degree of temporal locality (loc==1),
  *                                moderate (loc==2) or high (loc==3).
- *                                prefetch(addr) is equiv. to 
+ *                                prefetch(addr) is equiv. to
  *                                prefetch_loc_r(addr, 3).
  *  prefetch_loc_w(addr, loc) - like above but for writing.
 \endverbatim

+ 2 - 2
src/core/config.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 2 - 2
src/core/core_cmd.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 4 - 4
src/core/core_stats.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2010 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -14,9 +14,9 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/** 
+/**
  * @brief Macros used for various core statistics
- * 
+ *
  * Macros used for various core statistics, (if USE_CORE_STATS is not defined
  * they won't do anything).
  * @file
@@ -27,7 +27,7 @@
 #ifndef __core_stats_h
 #define __core_stats_h
 
-/* define USE_CORE_STATS to enable statistics events 
+/* define USE_CORE_STATS to enable statistics events
    (SREV_CORE_STATS callbacks) */
 /*#define USE_CORE_STATS */
 

+ 2 - 2
src/core/crc.c

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 /*!

+ 5 - 5
src/core/crypto/md5utils.c

@@ -1,22 +1,22 @@
 /*
  * Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
  * rights reserved.
- * 
+ *
  * License to copy and use this software is granted provided that it
  * is identified as the "RSA Data Security, Inc. MD5 Message-Digest
  * Algorithm" in all material mentioning or referencing this software
  * or this function.
- * 
+ *
  * License is also granted to make and use derivative works provided
  * that such works are identified as "derived from the RSA Data
  * Security, Inc. MD5 Message-Digest Algorithm" in all material
  * mentioning or referencing the derived work.
- * 
+ *
  * RSA Data Security, Inc. makes no representations concerning either
  * the merchantability of this software or the suitability of this
  * software for any particular purpose. It is provided "as is"
  * without express or implied warranty of any kind.
- * 
+ *
  * These notices must be retained in any copies of any part of this
  * documentation and/or software.
  */
@@ -39,7 +39,7 @@
 
 /*!
   * \brief Calculate a MD5 digests over a string array
-  * 
+  *
   * Calculate a MD5 digests over a string array and stores the result in the
   * destination char array. This function assumes 32 bytes in the destination
   * buffer.

+ 4 - 4
src/core/crypto/md5utils.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of Kamailio, a free SIP server.
@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -34,7 +34,7 @@
 
 /*!
   * \brief Calculate a MD5 digests over a string array
-  * 
+  *
   * Calculate a MD5 digests over a string array and stores the result in the
   * destination char array. This function assumes 32 bytes in the destination
   * buffer.

+ 2 - 2
src/core/data_lump.h

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/data_lump_rpl.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 2 - 2
src/core/data_lump_rpl.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 8 - 8
src/core/dns_cache.c

@@ -4344,7 +4344,7 @@ int dns_cache_add_record(unsigned short type, str *name, int ttl, str *value,
 						LM_ERR("Failed to create an A/AAAA record\n");
 						goto error;
 					}
-					/* fix the expiration time, dns_cache_mk_ip_entry() sets it 
+					/* fix the expiration time, dns_cache_mk_ip_entry() sets it
 				 * to now-1 */
 					expire = get_ticks_raw() + S_TO_TICKS(ttl);
 					new->expire = expire;
@@ -4360,10 +4360,10 @@ int dns_cache_add_record(unsigned short type, str *name, int ttl, str *value,
 			}
 			new->ent_flags = flags;
 		} else {
-			/* we must modify the entry, so better to clone it, modify the new 
+			/* we must modify the entry, so better to clone it, modify the new
 			 * one, and replace the old with the new entry in the hash table,
-			 * because the entry might be in use (even if the dns hash is 
-			 * locked). The old entry will be removed from the hash and 
+			 * because the entry might be in use (even if the dns hash is
+			 * locked). The old entry will be removed from the hash and
 			 * automatically destroyed when its refcnt will be 0*/
 
 			/* check whether there is an rr with the same value */
@@ -4443,7 +4443,7 @@ int dns_cache_add_record(unsigned short type, str *name, int ttl, str *value,
 						memcpy(((struct srv_rdata *)rr->rdata)->name, rr_name.s,
 								rr_name.len);
 				}
-				/* maximum expire value has been already fixed by 
+				/* maximum expire value has been already fixed by
 				 * dns_cache_clone_entry() */
 			}
 
@@ -4638,10 +4638,10 @@ int dns_cache_delete_single_record(
 		 * hash entry can be deleted */
 		goto delete;
 	} else {
-		/* we must modify the entry, so better to clone it, modify the new 
+		/* we must modify the entry, so better to clone it, modify the new
 		* one, and replace the old with the new entry in the hash table,
-		* because the entry might be in use (even if the dns hash is 
-		* locked). The old entry will be removed from the hash and 
+		* because the entry might be in use (even if the dns hash is
+		* locked). The old entry will be removed from the hash and
 		* automatically destroyed when its refcnt will be 0*/
 		new = dns_cache_clone_entry(old, 0, 0, 0);
 		if(!new) {

+ 1 - 1
src/core/dns_cache.h

@@ -122,7 +122,7 @@ const char *dns_strerror(int err);
 /*@} */
 
 
-/** @brief stripped down dns rr 
+/** @brief stripped down dns rr
 	@note name, type and class are not needed, contained in struct dns_query */
 struct dns_rr
 {

+ 2 - 2
src/core/dns_func.c

@@ -1,5 +1,5 @@
 
-/* 
+/*
  * Copyright (C) 2013  [email protected]
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 /*!
- * \file 
+ * \file
  * \brief Kamailio core :: DNS wrappers
  * \author [email protected]
  * \ingroup core

+ 6 - 6
src/core/dns_func.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2013 [email protected]
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -17,10 +17,10 @@
  * \file
  * \brief Kamailio core :: DNS wrapper functions
  * \author [email protected]
- *      
- * \ingroup core 
- * Module: \ref core                    
- *  
+ *
+ * \ingroup core
+ * Module: \ref core
+ *
  *
  */
 
@@ -44,7 +44,7 @@ struct dns_func_t
 	gethostbyname2_t sr_gethostbyname2;
 };
 
-/* 
+/*
  * initiate structure with system values
  */
 //extern struct dns_func_t dns_func;

+ 2 - 2
src/core/dns_wrappers.h

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 1 - 1
src/core/dst_blocklist.c

@@ -781,7 +781,7 @@ inline static int dst_is_blocklisted_ip(
 /** add dst to the blocklist, specifying the timeout.
  * @param err_flags - reason (bitmap)
  * @param si - destination (protocol, ip and port)
- * @param msg - sip message that triggered the blocklisting (can be 0 if 
+ * @param msg - sip message that triggered the blocklisting (can be 0 if
  *               not known)
  * @param timeout - timeout in ticks
  * @return 0 on success, -1 on error

+ 1 - 1
src/core/endianness.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2008 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any

+ 4 - 4
src/core/endianness.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2008 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -18,7 +18,7 @@
  *  Kamailio core :: endianness compile and runtime  tests
  *  @author andrei
  *  @ingroup core
- * 
+ *
  *
  * Defines:
  *  -  __IS_LITTLE_ENDIAN if the system is little endian and
@@ -28,7 +28,7 @@
  *  -   is_little_endian() - runtime test for little endian
  *  -   endianness_sanity_check() - returns 0 if the compile time
  *                                  detected endianness corresponds to
- *                                  the runtime detected one and -1 on 
+ *                                  the runtime detected one and -1 on
  *                                  error (recommended action: bail out)
  *  -   bswap16() - 16 bit byte swap
  *  -   bswap32() - 32 bit byte swap
@@ -46,7 +46,7 @@
  * bsd:   <sys/param.h>, <sys/endian.h>
  * solaris: <sys/param.h>
  *
- * Note: BIG_ENDIAN, LITTLE_ENDIAN, _BIG_ENDIAN, _LITTLE_ENDIAN cannot be 
+ * Note: BIG_ENDIAN, LITTLE_ENDIAN, _BIG_ENDIAN, _LITTLE_ENDIAN cannot be
  *       used always,  some OSes define both of them for BYTE_ORDER use
  *       (e.g. linux defines both BIG_ENDIAN & LITTLE_ENDIAN, bsds define
  *          _BIG_ENDIAN, _LITTLE_ENDIAN, BIG_ENDIAN, LITTLE_ENDIAN)

+ 4 - 4
src/core/fix_lumps.h

@@ -3,7 +3,7 @@
  * core functions using pkg_malloc and applied to shmem
  * requests; not doing so would result ugly memory problems
  *
- * I admit it is not a nice hack; -jiri 
+ * I admit it is not a nice hack; -jiri
  *
  * Copyright (C) 2001-2003 FhG Fokus
  *
@@ -19,8 +19,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 /*!
@@ -32,7 +32,7 @@
  * core functions using pkg_malloc and applied to shmem
  * requests; not doing so would result ugly memory problems
  *
- * I admit it is not a nice hack; -jiri 
+ * I admit it is not a nice hack; -jiri
 */
 
 

+ 2 - 2
src/core/flags.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/flags.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 /*!

+ 2 - 2
src/core/futexlock.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2007 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -43,7 +43,7 @@
 
 #ifdef HAVE_ASM_INLINE_ATOMIC_OPS
 #define HAVE_FUTEX
-#include <sys/types.h> /* hack to workaround some type conflicts 
+#include <sys/types.h> /* hack to workaround some type conflicts
                           between linux-libc-dev andlibc headers
                           in recent (6.08.2008) x86_64 debian sid
                           installations */

+ 7 - 7
src/core/hash_func.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -89,10 +89,10 @@ int new_hash2( str call_id, str cseq_nr )
 	char* p;
 	register unsigned v;
 	register unsigned h;
-	
+
 	h=0;
-	
-	
+
+
 	for (p=call_id.s; p<=(call_id.s+call_id.len-4); p+=4){
 		v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];
 		h_inc;
@@ -100,7 +100,7 @@ int new_hash2( str call_id, str cseq_nr )
 	v=0;
 	for (;p<(call_id.s+call_id.len); p++){ v<<=8; v+=*p;}
 	h_inc;
-	
+
 	for (p=cseq_nr.s; p<=(cseq_nr.s+cseq_nr.len-4); p+=4){
 		v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];
 		h_inc;
@@ -108,7 +108,7 @@ int new_hash2( str call_id, str cseq_nr )
 	v=0;
 	for (;p<(cseq_nr.s+cseq_nr.len); p++){ v<<=8; v+=*p;}
 	h_inc;
-	
+
 	h=((h)+(h>>11))+((h>>13)+(h>>23));
 	return (h)&(TABLE_ENTRIES-1);
 }

+ 5 - 5
src/core/hashes.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006 iptelorg GmbH 
+ * Copyright (C) 2006 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -58,7 +58,7 @@
 		(h) += (v) ^ ((v) >> 3);                                          \
 	} while(0)
 
-/** like hash_update_str, but case insensitive 
+/** like hash_update_str, but case insensitive
  * params: char* s   - string start,
  *         char* end - end
  *         char* p,  and unsigned v temporary vars (used)
@@ -117,7 +117,7 @@ inline static unsigned int get_hash1_raw(const char *s, int len)
 }
 
 
-/** a little slower than hash_* , but better distribution for 
+/** a little slower than hash_* , but better distribution for
  * numbers and about the same for strings */
 #define hash_update_str2(s, end, p, v, h)                             \
 	do {                                                              \
@@ -154,7 +154,7 @@ inline static unsigned int get_hash1_raw(const char *s, int len)
 #define hash_finish2(h) (((h) + ((h) >> 7)) + (((h) >> 13) + ((h) >> 23)))
 
 
-/** a little slower than get_hash1_raw() , but better distribution for 
+/** a little slower than get_hash1_raw() , but better distribution for
  * numbers and about the same for strings */
 inline static unsigned int get_hash1_raw2(const char *s, int len)
 {
@@ -186,7 +186,7 @@ inline static unsigned int get_hash2_raw2(const str *key1, const str *key2)
 }
 
 
-/* "raw" 2 strings case insensitive hash (like get_hash2_raw but case 
+/* "raw" 2 strings case insensitive hash (like get_hash2_raw but case
  * insensitive)
  * returns an unsigned int (which you can use modulo table_size as hash value)
  */

+ 2 - 2
src/core/id.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 4 - 4
src/core/id.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
@@ -65,8 +65,8 @@ int get_to_uid(str *uid, struct sip_msg *msg);
  * store the result.
  * @param uid A pointer to ::str variable where the result will be stored, the
  *            pointer in the variable will be updated to point to a static
- *            buffer in the function.  
- * @param msg The SIP message being processed.  
+ *            buffer in the function.
+ * @param msg The SIP message being processed.
  * @return 1 is returned when the attribute with UID exists and it is used, 0
  *         is returned when the function retrieved the UID from the SIP
  *         message and created the attribute, -1 is returned on error.

+ 1 - 1
src/core/io_wait.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2005 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any

+ 3 - 3
src/core/local_timer.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -160,7 +160,7 @@ error:
  * deletes tl and inits the list pointer to 0
  * WARNING: to be able to reuse a deleted timer you must call
  *          timer_reinit(tl) on it
- * 
+ *
  */
 void local_timer_del(struct local_timer *h, struct timer_ln *tl)
 {

+ 3 - 3
src/core/local_timer.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 /*!
@@ -25,7 +25,7 @@
 * Module: \ref core
 *
  * WARNING: this should be used only from within the same process.
- * The local timers are not multi-process or multi-thread safe 
+ * The local timers are not multi-process or multi-thread safe
  *  (there are no locks)
  *
  */

+ 3 - 3
src/core/lock_alloc.h

@@ -19,8 +19,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -39,7 +39,7 @@ Implements: (see also locking.h)
 	-------------
 	gen_lock_t* lock_alloc();                - allocates a lock in shared mem.
 	void    lock_dealloc(gen_lock_t* lock);  - deallocates the lock's shared m.
-	
+
 	lock sets: [implemented only for FL & SYSV so far]
 	----------
 	gen_lock_set_t* lock_set_alloc(no)               - allocs a lock set in shm.

+ 1 - 1
src/core/lock_ops.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2007 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any

+ 8 - 8
src/core/lock_ops.h

@@ -36,8 +36,8 @@ Implements:
 	void    lock_release(gen_lock_t* lock);  - unlock (mutex up)
 	int     lock_try(gen_lock_t* lock);      - tries to get the lock, returns
 	                                            0 on success and !=0 on failure
-	
-	lock sets: 
+
+	lock sets:
 	----------
 	gen_lock_set_t* lock_set_init(gen_lock_set_t* set);  - inits the lock set
 	void lock_set_destroy(gen_lock_set_t* s);        - removes the lock set
@@ -47,16 +47,16 @@ Implements:
 	int  lock_set_try(gen_lock_set_t* s, int i);    - tries to lock the sem i,
 	                                                  returns 0 on success and
 	                                                  !=0 on failure
-	
+
 	defines:
 	--------
 	GEN_LOCK_T_PREFERRED - defined if using  arrays of gen_lock_t is as good as
-	                      using a lock set (gen_lock_set_t). 
-						  In general is better to have the locks "close" or 
-						  inside the protected data structure rather then 
+	                      using a lock set (gen_lock_set_t).
+						  In general is better to have the locks "close" or
+						  inside the protected data structure rather then
 						  having a separate array or lock set. However in some
 						  case (e.g. SYSV_LOCKS) is better to use lock sets,
-						  either due to lock number limitations, excesive 
+						  either due to lock number limitations, excesive
 						  performance or memory overhead. In this cases
 						  GEN_LOCK_T_PREFERRED will not be defined.
 	GEN_LOCK_T_UNLIMITED - defined if there is no system imposed limit on
@@ -64,7 +64,7 @@ Implements:
 	GEN_LOCK_SET_T_UNLIMITED
 	                      - like above but for the size of a lock set.
 
-WARNING: - lock_set_init may fail for large number of sems (e.g. sysv). 
+WARNING: - lock_set_init may fail for large number of sems (e.g. sysv).
          - signals are not treated! (some locks are "awakened" by the signals)
 */
 

+ 2 - 2
src/core/lock_ops_init.h

@@ -1,5 +1,5 @@
-/* 
- * 
+/*
+ *
  * Copyright (C) 2007 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any

+ 4 - 4
src/core/mem/dl_malloc.c

@@ -363,9 +363,9 @@ MALLINFO_FIELD_TYPE        default: size_t
   size_t. The value is used only if  HAVE_USR_INCLUDE_MALLOC_H is not set
 
 REALLOC_ZERO_BYTES_FREES    default: not defined
-  This should be set if a call to realloc with zero bytes should 
-  be the same as a call to free. Some people think it should. Otherwise, 
-  since this malloc returns a unique pointer for malloc(0), so does 
+  This should be set if a call to realloc with zero bytes should
+  be the same as a call to free. Some people think it should. Otherwise,
+  since this malloc returns a unique pointer for malloc(0), so does
   realloc(p, 0).
 
 LACKS_UNISTD_H, LACKS_FCNTL_H, LACKS_SYS_PARAM_H, LACKS_SYS_MMAN_H
@@ -5130,7 +5130,7 @@ History:
     Trial version Fri Aug 28 13:14:29 1992  Doug Lea  (dl at g.oswego.edu)
       * Based loosely on libg++-1.2X malloc. (It retains some of the overall
          structure of old version,  but most details differ.)
- 
+
 */
 
 void mspace_info(mspace ms, struct mem_info *info)

+ 3 - 3
src/core/mem/dl_malloc.h

@@ -1,14 +1,14 @@
 /*
   Default header file for malloc-2.8.x, written by Doug Lea
   and released to the public domain, as explained at
-  http://creativecommons.org/licenses/publicdomain. 
- 
+  http://creativecommons.org/licenses/publicdomain.
+
   last update: Mon Aug 15 08:55:52 2005  Doug Lea  (dl at gee)
 
   This header is for ANSI C/C++ only.  You can set any of
   the following #defines before including:
 
-  * If USE_DL_PREFIX is defined, it is assumed that malloc.c 
+  * If USE_DL_PREFIX is defined, it is assumed that malloc.c
     was also compiled with this option, so all routines
     have names starting with "dl".
 

+ 5 - 5
src/core/mem/ll_malloc.c

@@ -1,5 +1,5 @@
 /*
- * shared memory, multi-process safe, pool based, mostly lockless version of 
+ * shared memory, multi-process safe, pool based, mostly lockless version of
  *  f_malloc
  *
  * This file is part of Kamailio, a free SIP server.
@@ -86,7 +86,7 @@
 #define FRAG_WAS_USED(f) (1)
 
 /* other frag related defines:
- * MEM_COALESCE_FRAGS 
+ * MEM_COALESCE_FRAGS
  * MEM_FRAG_AVOIDANCE
  */
 #define MEM_FRAG_AVOIDANCE
@@ -98,7 +98,7 @@
 inline static unsigned long big_hash_idx(unsigned long s)
 {
 	unsigned long idx;
-	/* s is rounded => s = k*2^n (SF_ROUNDTO=2^n) 
+	/* s is rounded => s = k*2^n (SF_ROUNDTO=2^n)
 	 * index= i such that 2^i > s >= 2^(i-1)
 	 *
 	 * => index = number of the first non null bit in s*/
@@ -843,7 +843,7 @@ void *sfm_realloc(struct sfm_block *qm, void *p, unsigned long size)
 					goto not_found;
 				}
 				if(unlikely((n->id != p_id) || (n->size != n_size))) {
-					/* fragment still free, but changed, either 
+					/* fragment still free, but changed, either
 					 * moved to another pool or has a diff. size */
 					SFM_MAIN_HASH_UNLOCK(qm, hash);
 					goto try_again;
@@ -891,7 +891,7 @@ void *sfm_realloc(struct sfm_block *qm, void *p, unsigned long size)
 					goto not_found;
 				}
 				if(unlikely((n->id != p_id) || (n->size != n_size))) {
-					/* fragment still free, but changed, either 
+					/* fragment still free, but changed, either
 					 * moved to another pool or has a diff. size */
 					SFM_POOL_UNLOCK(pool, hash);
 					goto try_again;

+ 1 - 1
src/core/mem/ll_malloc.h

@@ -1,5 +1,5 @@
 /*
- * shared memory, multi-process safe, pool based, mostly lockless version of 
+ * shared memory, multi-process safe, pool based, mostly lockless version of
  *  f_malloc
  *
  * This file is part of Kamailio, a free SIP server.

+ 2 - 2
src/core/mem/memtest.c

@@ -97,7 +97,7 @@ void memtest()
 	mf(p2);
 	mf(p5);
 	mf(p6);
-	
+
 //	MY_STATUS(mem_block);
 
 	mf(p1);
@@ -139,7 +139,7 @@ void memtest()
 	printf("now I'm really done\n");
 	MY_STATUS(mem_block);
 	printf("And I'm done with dumping final report too\n");
-	
+
 	exit(0);
 }
 #endif

+ 1 - 1
src/core/mem/pkg.c

@@ -19,7 +19,7 @@
 /**
  * \file
  * \brief Main definitions for memory manager
- * 
+ *
  * Main definitions for PKG memory manager, like malloc, free and realloc
  * \ingroup mem
  */

+ 1 - 1
src/core/mem/pkg.h

@@ -19,7 +19,7 @@
 /**
  * \file
  * \brief Main definitions for memory manager
- * 
+ *
  * Main definitions for PKG memory manager, like malloc, free and realloc
  * \ingroup mem
  */

+ 3 - 3
src/core/mem/src_loc.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2009 iptelorg GmbH
  *
  * This file is part of Kamailio, a free SIP server.
@@ -19,12 +19,12 @@
 /**
  * \file
  * \brief Helper definitions for internal memory manager
- * 
+ *
  * Helper definitions for internal memory manager, defines for src location
  * (function name, module a.s.o.), used for recording a *malloc()/ *free()
  * caller. Expects MOD_NAME defined for modules (if it's not defined "core"
  * will be assumed).
- * 
+ *
  * Defines:
  * - _SRC_FUNCTION_  - current function name
  * - _SRC_FILENAME_  - current .c filename

+ 4 - 4
src/core/mod_fix.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2008 iptelorg GmbH
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -49,7 +49,7 @@ int fixup_regexpNL_none(void** param, int param_no); /* textops */
   *
   * The result (in *param) will be a fparam_t.
   *
-  * @param suffix - function suffix (fixup_ will be pre-pended to it 
+  * @param suffix - function suffix (fixup_ will be pre-pended to it
   * @param minp - minimum parameter number acceptable
   * @param maxp - maximum parameter number
   * @param no1 -  number of parameters of type1
@@ -114,7 +114,7 @@ int fixup_regexpNL_none(void** param, int param_no); /* textops */
   * rest as direct type.
   *
   * @see FIXUP_F2FP for the parameters with the exception
-  * that only the first no1 parameters are converted to 
+  * that only the first no1 parameters are converted to
   * fparamt_t and the rest directly to the correponding type
   *
   * Side effect: declares also some _fpt_helper functions
@@ -547,7 +547,7 @@ int fixup_free_igp_spve(void **param, int param_no)
 
 
 /** macro for declaring a spve fixup and the corresponding free_fixup
-  * for a function expecting first no1 params as fparam converted spve 
+  * for a function expecting first no1 params as fparam converted spve
   * and the * rest as direct type.
   *
   * @see FIXUP_F2FP for the parameters with the exception

+ 4 - 4
src/core/msg_translator.c

@@ -1954,22 +1954,22 @@ clean:
   * @param msg  - sip message structure, complete with lumps
   * @param returned_len - result length (filled in)
   * @param send_info  - dest_info structure (value/result), contains where the
-  *                     packet will be sent to (it's needed for building a 
+  *                     packet will be sent to (it's needed for building a
   *                     correct via, fill RR lumps a.s.o.). If MTU based
   *                     protocol fall-back is enabled (see flags below),
   *                     send_info->proto might be updated with the new
   *                     protocol.
   *                     msg->msg_flags used:
   *                     - FL_TCP_MTU_FB, FL_TLS_MTU_FB and FL_SCTP_MTU_FB -
-  *                       fallback to the corresp. proto if the built 
-  *                       message > mtu and send_info->proto==PROTO_UDP. 
+  *                       fallback to the corresp. proto if the built
+  *                       message > mtu and send_info->proto==PROTO_UDP.
   *                       It will also update send_info->proto.
   *                     - FL_FORCE_RPORT: add rport to via
   * @param mode - flags for building the message, can be a combination of:
   *                 * BUILD_NO_LOCAL_VIA - don't add a local via
   *                 * BUILD_NO_VIA1_UPDATE - don't update first via (rport,
   *                    received a.s.o)
-  *                 * BUILD_NO_PATH - don't add a Route: header with the 
+  *                 * BUILD_NO_PATH - don't add a Route: header with the
   *                   msg->path_vec content.
   *                 * BUILD_IN_SHM - build the result in shm memory
   *

+ 2 - 2
src/core/msg_translator.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 1 - 1
src/core/nonsip_hooks.c

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

+ 1 - 1
src/core/nonsip_hooks.h

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

+ 2 - 2
src/core/parser/contact/contact.h

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  * History:

+ 2 - 2
src/core/parser/contact/parse_contact.h

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  * History:

+ 3 - 3
src/core/parser/digest/digest.h

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -44,7 +44,7 @@ typedef struct auth_body
 	      * This is necessary for functions called after
 	      * {www,proxy}_authorize, these functions need to know
 	      * which credentials are authorized and they will simply
-	      * look into 
+	      * look into
 	      * sip_msg->{authorization,proxy_auth}->parsed->authorized
 	      */
 	struct hdr_field *authorized;

+ 2 - 2
src/core/parser/digest/digest_keys.h

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 4 - 4
src/core/parser/digest/digest_parser.c

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  * History:
@@ -333,7 +333,7 @@ static inline int parse_digest_params(str *_s, dig_cred_t *_c)
 		/* Try to find the next parameter */
 		comma = q_memchr(_s->s, ',', _s->len);
 		if(comma) {
-			/* Yes, there is another, 
+			/* Yes, there is another,
 			      * remove any leading white-spaces
 			      * and let _s point to the next
 			      * parameter name
@@ -375,7 +375,7 @@ int parse_digest_cred(str *_s, dig_cred_t *_c)
 	str tmp;
 
 	/* Make a temporary copy, we are
-	      * going to modify it 
+	      * going to modify it
 	      */
 	tmp.s = _s->s;
 	tmp.len = _s->len;

+ 2 - 2
src/core/parser/digest/digest_parser.h

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  * History:

+ 2 - 2
src/core/parser/digest/param_parser.c

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/parser/digest/param_parser.h

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/parser/hf.h

@@ -20,7 +20,7 @@
  */
 
 /** Parser :: parse headers.
- * @file 
+ * @file
  *
  * @ingroup parser
  */
@@ -34,7 +34,7 @@
 
 
 /** header types enum.
- * 
+ *
  * @note
  * if you add a new type:
  *  - make sure it's not greater than 63

+ 2 - 2
src/core/parser/parse_addr_spec.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 3 - 3
src/core/parser/parse_allow.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -33,7 +33,7 @@
 
 
 /*! \brief
- * casting macro for accessing Allow body 
+ * casting macro for accessing Allow body
  */
 #define get_allow_methods(p_msg) \
 	(((struct allow_body *)(p_msg)->allow->parsed)->allow_all)

+ 6 - 6
src/core/parser/parse_body.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
@@ -191,7 +191,7 @@ char *get_body_part(struct sip_msg *msg, unsigned short type,
 		buf_end = msg->buf + msg->len;
 
 		/* check all the body parts delimated by the boundary value,
-		and search for the Content-Type HF with the given 
+		and search for the Content-Type HF with the given
 		type/subtype */
 	next_part:
 		while((c = search_boundary(c, buf_end, &boundary))) {
@@ -286,7 +286,7 @@ char *get_body_part(struct sip_msg *msg, unsigned short type,
  * trim leading all spaces ' ' and horizontal tabs '\\t' characters.
  * \param buffer pointer to the beginning of the buffer
  * \param end_buffer pointer to the end of the buffer
- * \return pointer to the first non-match character if success, 
+ * \return pointer to the first non-match character if success,
  * pointer to NULL if the end_buffer is reached.
  */
 char *trim_leading_hts(char *buffer, char *end_buffer)
@@ -322,7 +322,7 @@ char *trim_leading_e_r(char *buffer, char *end_buffer)
 
 /**
  * \brief part_multipart_headers_cmp
- * 
+ *
  * trim leading characters until get a '\\r'.
  * \param buffer pointer to the beginning of the headers in a part of the multipart body
  * \param end_buffer pointer to the end of the headers in the multipart body
@@ -527,7 +527,7 @@ int part_multipart_headers_cmp(char *buffer, char *end_buffer,
  *
  * Filters the multipart part from a given SIP message which matches the
  * Content-Type && || Content-ID  && || Content-Length
- * 
+ *
  * \param msg SIP message
  * \param content_type if NULL Content-Type: disabled in the search
  * \param content_subtype if NULL Content-Subtype: disabled in the search

+ 2 - 2
src/core/parser/parse_body.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 3 - 3
src/core/parser/parse_content.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -74,7 +74,7 @@ struct mime_type
 #define MIMETYPE(x_, y_) ((TYPE_##x_ << 16) | (SUBTYPE_##y_))
 
 /*! \brief
- * Maximum number of mimes allowed in Accept header 
+ * Maximum number of mimes allowed in Accept header
  */
 #define MAX_MIMES_NR 128
 

+ 2 - 2
src/core/parser/parse_cseq.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/parser/parse_def.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/parser/parse_disposition.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 2 - 2
src/core/parser/parse_disposition.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 3 - 3
src/core/parser/parse_diversion.h

@@ -13,14 +13,14 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 /*! \file
  * \brief Parser :: Diversion header
- * 
+ *
  * \ingroup parser
  */
 

+ 2 - 2
src/core/parser/parse_event.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/parser/parse_expires.h

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 2 - 2
src/core/parser/parse_from.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

+ 1 - 1
src/core/parser/parse_hname2.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Fast 32-bit Header Field Name Parser
  *
  * Copyright (C) 2001-2003 FhG Fokus

+ 3 - 3
src/core/parser/parse_methods.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
@@ -33,7 +33,7 @@
 
 #define ALL_METHODS 0xffffffff
 
-/* 
+/*
  * Parse comma separated list of methods pointed by _body and assign their
  * enum bits to _methods.  Returns 1 on success and 0 on failure.
  */

+ 3 - 3
src/core/parser/parse_nameaddr.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of Kamailio, a free SIP server.
@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 3 - 3
src/core/parser/parse_nameaddr.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of Kamailio, a free SIP server.
@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 2 - 2
src/core/parser/parse_option_tags.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2006 Andreas Granig <[email protected]>
- * 
+ *
  * This file is part of Kamailio, a free SIP server.
  *
  * Kamailio is free software; you can redistribute it and/or modify
@@ -62,7 +62,7 @@ struct option_tag_body
 	hf_parsed_free_f hfree;		  /* function to free the content */
 	unsigned int option_tags;	  /* option-tag mask for the current hdr */
 	unsigned int option_tags_all; /* option-tag mask for the all hdr
-	                                *  - it's set only for the first hdr in 
+	                                *  - it's set only for the first hdr in
 	                                *  sibling list*/
 };
 

+ 3 - 3
src/core/parser/parse_param.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * Generic Parameter Parser
  *
  * Copyright (C) 2001-2003 FhG Fokus
@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */

+ 3 - 3
src/core/parser/parse_ppi_pai.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
@@ -33,7 +33,7 @@
 #include "../ut.h"
 #include "../mem/mem.h"
 
-/* 
+/*
  * A P-Asserted-Identity or P-Preferred-Identity header value is an addr-spec or name-addr
  * There can be only one of any URI scheme (sip(s), tel etc), which may occur on separate
  * headers or can be comma separated in a single header.

+ 2 - 2
src/core/parser/parse_ppi_pai.h

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff