瀏覽代碼

test/misc/code: removed trailing spaces

Daniel-Constantin Mierla 1 年之前
父節點
當前提交
386bf69889

+ 3 - 3
test/misc/code/atomic_test.c

@@ -2,18 +2,18 @@
  *
  *
  *  simple atomic ops testing program
  *  simple atomic ops testing program
  *  (no paralel stuff, just see if the opcodes are "legal")
  *  (no paralel stuff, just see if the opcodes are "legal")
- * 
+ *
  *  Compile with: gcc -Wall -O3 -D__CPU_i386  on x86 machines
  *  Compile with: gcc -Wall -O3 -D__CPU_i386  on x86 machines
  *                gcc -Wall -O3 -D__CPU_x86_64 on amd64 machines
  *                gcc -Wall -O3 -D__CPU_x86_64 on amd64 machines
  *                gcc -mips2 -Wall -O2 -D__CPU_mips2  on mips machines
  *                gcc -mips2 -Wall -O2 -D__CPU_mips2  on mips machines
  *                gcc -m64 -Wall -O2 -D__CPU_mips64 on mips64 machines
  *                gcc -m64 -Wall -O2 -D__CPU_mips64 on mips64 machines
  *                gcc -O3 -Wall -D__CPU_ppc on powerpc machines
  *                gcc -O3 -Wall -D__CPU_ppc on powerpc machines
  *                gcc -m64 -O3 -Wall -D__CPU_ppc64 on powerpc machines
  *                gcc -m64 -O3 -Wall -D__CPU_ppc64 on powerpc machines
- *                gcc -m64 -O3 -Wall -D__CPU_sparc64 -DSPARC64_MODE on 
+ *                gcc -m64 -O3 -Wall -D__CPU_sparc64 -DSPARC64_MODE on
  *                                                   ultrasparc machines
  *                                                   ultrasparc machines
  *  -- andrei
  *  -- andrei
  *
  *
- *  
+ *
  */
  */
 
 
 #include <stdio.h>
 #include <stdio.h>

+ 6 - 6
test/misc/code/atomic_test2.c

@@ -13,24 +13,24 @@
  *           __CPU_xxx - use __CPU_xxx code
  *           __CPU_xxx - use __CPU_xxx code
  *           SPARC64_MODE - compile for a sparc 64 in 64 bit mode (gcc -m64
  *           SPARC64_MODE - compile for a sparc 64 in 64 bit mode (gcc -m64
  *                          must be used on solaris in this case)
  *                          must be used on solaris in this case)
- *  Example:  
+ *  Example:
  *    gcc -Wall -O3 -D__CPU_i386 -DNOSMP -DMEMBAR -DTYPE=long atomic_test2.c
  *    gcc -Wall -O3 -D__CPU_i386 -DNOSMP -DMEMBAR -DTYPE=long atomic_test2.c
- * 
+ *
  *  Compile with: gcc -Wall -O3 -D__CPU_i386  ... on x86 machines
  *  Compile with: gcc -Wall -O3 -D__CPU_i386  ... on x86 machines
  *                gcc -Wall -O3 -D__CPU_x86_64 ... on amd64 machines
  *                gcc -Wall -O3 -D__CPU_x86_64 ... on amd64 machines
  *                gcc -mips2 -Wall -O2 -D__CPU_mips2  ... on mips machines
  *                gcc -mips2 -Wall -O2 -D__CPU_mips2  ... on mips machines
  *                gcc -m64 -Wall -O2 -D__CPU_mips64 ... on mips64 machines
  *                gcc -m64 -Wall -O2 -D__CPU_mips64 ... on mips64 machines
  *                gcc -O3 -Wall -D__CPU_ppc ... on powerpc machines
  *                gcc -O3 -Wall -D__CPU_ppc ... on powerpc machines
  *                gcc -m64 -O3 -Wall -D__CPU_ppc64 ... on powerpc machines
  *                gcc -m64 -O3 -Wall -D__CPU_ppc64 ... on powerpc machines
- *                gcc -m64 -O3 -Wall -D__CPU_sparc64 -DSPARC64_MODE ... on 
+ *                gcc -m64 -O3 -Wall -D__CPU_sparc64 -DSPARC64_MODE ... on
  *                                                   ultrasparc machines
  *                                                   ultrasparc machines
- *                gcc -mcpu=v9 -O3 -Wall -D__CPU_sparc64  ... for 32 bit code 
- *                                                   (sparc32plus) on 
+ *                gcc -mcpu=v9 -O3 -Wall -D__CPU_sparc64  ... for 32 bit code
+ *                                                   (sparc32plus) on
  *                                                   ultrasparc machines
  *                                                   ultrasparc machines
  *                gcc -O3 -Wall -D__CPU_sparc ... on sparc v8 machines
  *                gcc -O3 -Wall -D__CPU_sparc ... on sparc v8 machines
  *  -- andrei
  *  -- andrei
  *
  *
- *  
+ *
  */
  */
 
 
 #include <stdio.h>
 #include <stdio.h>

+ 3 - 3
test/misc/code/auto.c

@@ -16,8 +16,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
@@ -466,7 +466,7 @@ int main(int argc, char **argv)
 							break;
 							break;
 						case UNKNOWN_HEADER:
 						case UNKNOWN_HEADER:
 						default:
 						default:
-							/*printf("found unknown header, state=%d\n", 
+							/*printf("found unknown header, state=%d\n",
 											state);*/
 											state);*/
 							err = 1;
 							err = 1;
 							state = INITIAL;
 							state = INITIAL;

+ 2 - 2
test/misc/code/bit_scan_test.c

@@ -1,7 +1,7 @@
 /*
 /*
  * test bit_scan operations from bit_scan.h
  * test bit_scan operations from bit_scan.h
  *  (both for correctness  and speed)
  *  (both for correctness  and speed)
- * 
+ *
  * Copyright (C) 2007 iptelorg GmbH
  * Copyright (C) 2007 iptelorg GmbH
  *
  *
  * Permission to use, copy, modify, and distribute this software for any
  * Permission to use, copy, modify, and distribute this software for any
@@ -16,7 +16,7 @@
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
  */
-/* 
+/*
  * Example gcc command line:
  * Example gcc command line:
  *  gcc -O9 -Wall -DCC_GCC_LIKE_ASM  -D__CPU_x86 bit_scan_test.c ../bit_scan.c
  *  gcc -O9 -Wall -DCC_GCC_LIKE_ASM  -D__CPU_x86 bit_scan_test.c ../bit_scan.c
  *      -o bit_scan_test
  *      -o bit_scan_test

+ 3 - 3
test/misc/code/dns_query.c

@@ -5,7 +5,7 @@
  * Compile with:
  * Compile with:
  *  gcc -o dns_query2 dns_query.c ../resolve.o ../dprint.o ../mem/ *.o -lresolv
  *  gcc -o dns_query2 dns_query.c ../resolve.o ../dprint.o ../mem/ *.o -lresolv
  *  (and first compile Kamailio with qm_malloc)
  *  (and first compile Kamailio with qm_malloc)
- * 
+ *
  *
  *
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2001-2003 FhG Fokus
  *
  *
@@ -21,8 +21,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 /*
 /*

+ 6 - 6
test/misc/code/endian_test.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
  * Permission to use, copy, modify, and distribute this software for any
  * Permission to use, copy, modify, and distribute this software for any
@@ -18,7 +18,7 @@
  *  compile/run with:
  *  compile/run with:
  *  gcc  -Wall endian_test.c ../endianness.c  -o endian_test; ./endian_test
  *  gcc  -Wall endian_test.c ../endianness.c  -o endian_test; ./endian_test
  */
  */
-/* 
+/*
  * History:
  * History:
  * --------
  * --------
  *  2008-06-13  created by andrei
  *  2008-06-13  created by andrei
@@ -33,7 +33,7 @@
  *           BYTE_ORDER == LITTLE_ENDIAN | BIG_ENDIAN
  *           BYTE_ORDER == LITTLE_ENDIAN | BIG_ENDIAN
  * solaris: _LITTLE_ENDIAN | _BIG_ENDIAN
  * solaris: _LITTLE_ENDIAN | _BIG_ENDIAN
  *
  *
- * 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
  *       used always,  some OSes define both of them for BYTE_ORDER use
  *       (e.g. linux defines both BIG_ENDIAN & LITTLE_ENDIAN, bsds define
  *       (e.g. linux defines both BIG_ENDIAN & LITTLE_ENDIAN, bsds define
  *          _BIG_ENDIAN, _LITTLE_ENDIAN, BIG_ENDIAN, LITTLE_ENDIAN)
  *          _BIG_ENDIAN, _LITTLE_ENDIAN, BIG_ENDIAN, LITTLE_ENDIAN)
@@ -43,14 +43,14 @@
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include "../endianness.h"
 #include "../endianness.h"
-/* 
+/*
  * Tested:
  * Tested:
  * linux:   y
  * linux:   y
  * freebsd: y
  * freebsd: y
  * openbsd:
  * openbsd:
  * netbsd:
  * netbsd:
  * solaris: y
  * solaris: y
- * darwin: 
+ * darwin:
  * cygwin:
  * cygwin:
  *
  *
  * Header files:
  * Header files:
@@ -72,7 +72,7 @@
  *           BYTE_ORDER == LITTLE_ENDIAN | BIG_ENDIAN
  *           BYTE_ORDER == LITTLE_ENDIAN | BIG_ENDIAN
  * solaris: _LITTLE_ENDIAN | _BIG_ENDIAN
  * solaris: _LITTLE_ENDIAN | _BIG_ENDIAN
  *
  *
- * 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
  *       used always,  some OSes define both of them for BYTE_ORDER use
  *       (e.g. linux defines both BIG_ENDIAN & LITTLE_ENDIAN, bsds define
  *       (e.g. linux defines both BIG_ENDIAN & LITTLE_ENDIAN, bsds define
  *          _BIG_ENDIAN, _LITTLE_ENDIAN, BIG_ENDIAN, LITTLE_ENDIAN)
  *          _BIG_ENDIAN, _LITTLE_ENDIAN, BIG_ENDIAN, LITTLE_ENDIAN)

+ 2 - 2
test/misc/code/gethostbyaddr.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 2 - 2
test/misc/code/gethostbyname.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 6 - 6
test/misc/code/ifls.c

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 /*
 /*
@@ -102,14 +102,14 @@ int ls_ifflags(char *name, int family, int options)
 	memset(&ifr, 0, sizeof(ifr)); /* init to 0 (check if filled)*/
 	memset(&ifr, 0, sizeof(ifr)); /* init to 0 (check if filled)*/
 	s = socket(family, SOCK_DGRAM, 0);
 	s = socket(family, SOCK_DGRAM, 0);
 	strncpy(ifr.ifr_name, name, IFNAMSIZ);
 	strncpy(ifr.ifr_name, name, IFNAMSIZ);
-#if 0	
+#if 0
 	if (ioctl(s, SIOCGIFADDR, &ifr)==-1){
 	if (ioctl(s, SIOCGIFADDR, &ifr)==-1){
 		if(errno==EBADF) return 0; /* invalid descriptor => no address*/
 		if(errno==EBADF) return 0; /* invalid descriptor => no address*/
-		fprintf(stderr, "ls_if: ioctl for %s failed: %s\n", name, 
+		fprintf(stderr, "ls_if: ioctl for %s failed: %s\n", name,
 					strerror(errno));
 					strerror(errno));
 		goto error;
 		goto error;
 	};
 	};
-	
+
 	printf("%s:\n", ifr.ifr_name);
 	printf("%s:\n", ifr.ifr_name);
 	printf("        dbg: family=%d", ifr.ifr_addr.sa_family);
 	printf("        dbg: family=%d", ifr.ifr_addr.sa_family);
 #ifdef __FreeBSD__
 #ifdef __FreeBSD__
@@ -121,7 +121,7 @@ int ls_ifflags(char *name, int family, int options)
 		printf("ls_if: OS BUG: SIOCGIFADDR doesn't work!\n");
 		printf("ls_if: OS BUG: SIOCGIFADDR doesn't work!\n");
 		goto error;
 		goto error;
 	}
 	}
-	
+
 	printf("        ");
 	printf("        ");
 	print_sockaddr(&ifr.ifr_addr);
 	print_sockaddr(&ifr.ifr_addr);
 
 

+ 3 - 3
test/misc/code/lock_test.c

@@ -1,13 +1,13 @@
 /*
 /*
- * 
+ *
  *  simple locking test program
  *  simple locking test program
  *  (no paralles stuff)
  *  (no paralles stuff)
- * 
+ *
  *  Compile with: gcc -D__CPU_i386 -O3 on x86 machines and
  *  Compile with: gcc -D__CPU_i386 -O3 on x86 machines and
  *                gcc -mips2 -O2 -D__CPU_mips2  on mips machines.
  *                gcc -mips2 -O2 -D__CPU_mips2  on mips machines.
  *  -- andrei
  *  -- andrei
  *
  *
- *  
+ *
  */
  */
 
 
 #include <stdio.h>
 #include <stdio.h>

+ 2 - 2
test/misc/code/locking/locking_test.c

@@ -20,8 +20,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 2 - 2
test/misc/code/mips_lock.c

@@ -2,12 +2,12 @@
  *
  *
  *  simple locking test program
  *  simple locking test program
  *  (no paralles stuff)
  *  (no paralles stuff)
- * 
+ *
  *  Compile with: gcc -D__CPU_i386 -O3 on x86 machines and
  *  Compile with: gcc -D__CPU_i386 -O3 on x86 machines and
  *                gcc -mips2 -O2 -D__CPU_mips  on mips machines.
  *                gcc -mips2 -O2 -D__CPU_mips  on mips machines.
  *  -- andrei
  *  -- andrei
  *
  *
- *  
+ *
  */
  */
 
 
 #include <stdio.h>
 #include <stdio.h>

+ 7 - 7
test/misc/code/profile.h

@@ -21,27 +21,27 @@
  *
  *
  * cycles_t get_cpu_cycles() - returns the current cpu cycles counter
  * cycles_t get_cpu_cycles() - returns the current cpu cycles counter
  *
  *
- * void     get_cpu_cycles_uint(unsigned* u1, unsigned* u2) 
- *                            - sets u1 and u2 to the least significant, 
+ * void     get_cpu_cycles_uint(unsigned* u1, unsigned* u2)
+ *                            - sets u1 and u2 to the least significant,
  *                              respective most significant 32 bit word of
  *                              respective most significant 32 bit word of
  *                              the cpu cycles counter
  *                              the cpu cycles counter
  * struct profile_data;            - holds all the profile results
  * struct profile_data;            - holds all the profile results
  *                               (last call cycles, max cycles, total cycles,
  *                               (last call cycles, max cycles, total cycles,
- *                                no. of profile_start calls, no. of 
+ *                                no. of profile_start calls, no. of
  *                                profile_end calls, name use in profile_init)
  *                                profile_end calls, name use in profile_init)
  * void     profile_init(pd, name) - initialize a profile structure
  * void     profile_init(pd, name) - initialize a profile structure
  * void     profile_start(pd)      - starts profiling (call before calling
  * void     profile_start(pd)      - starts profiling (call before calling
  *                               the target function)
  *                               the target function)
  * void     profile_end(pd)        - stops profiling (call after the target
  * void     profile_end(pd)        - stops profiling (call after the target
  *                               function returns)
  *                               function returns)
- * 
+ *
  */
  */
 /*
 /*
  * Config defines:   CC_GCC_LIKE_ASM  - the compiler support gcc style
  * Config defines:   CC_GCC_LIKE_ASM  - the compiler support gcc style
  *                     inline asm,
  *                     inline asm,
  *                  __CPU_x86, __CPU_x86_64, __CPU_sparc64
  *                  __CPU_x86, __CPU_x86_64, __CPU_sparc64
  */
  */
-/* 
+/*
  * History:
  * History:
  * --------
  * --------
  *  2007-06-23  created by andrei
  *  2007-06-23  created by andrei
@@ -58,8 +58,8 @@
  *            (unsigned long long for now)
  *            (unsigned long long for now)
  *
  *
  * cycles_t get_cpu_cycles() - returns the current cpu cycles counter
  * cycles_t get_cpu_cycles() - returns the current cpu cycles counter
- * void     get_cpu_cycles_uint(unsigned* u1, unsigned* u2) 
- *                            - sets u1 and u2 to the least significant, 
+ * void     get_cpu_cycles_uint(unsigned* u1, unsigned* u2)
+ *                            - sets u1 and u2 to the least significant,
  *                              respective most significant 32 bit word of
  *                              respective most significant 32 bit word of
  *                              the cpu cycles counter
  *                              the cpu cycles counter
  */
  */

+ 2 - 2
test/misc/code/re_test.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 /*
 /*

+ 2 - 2
test/misc/code/resolver_test.c

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 5 - 5
test/misc/code/shoot.c

@@ -29,7 +29,7 @@ regex_t *regexp;
 
 
 #define RESIZE 1024
 #define RESIZE 1024
 
 
-/* take either a dot.decimal string of ip address or a 
+/* take either a dot.decimal string of ip address or a
 domain name and returns a NETWORK ordered long int containing
 domain name and returns a NETWORK ordered long int containing
 the address. i chose to internally represent the address as long for speedier
 the address. i chose to internally represent the address as long for speedier
 comparisons.
 comparisons.
@@ -93,7 +93,7 @@ long getaddress(char *host)
 /*
 /*
 shoot:
 shoot:
 takes:
 takes:
-	1. the text message of buff to 
+	1. the text message of buff to
 	2. the address (network ordered byte order)
 	2. the address (network ordered byte order)
 	3. and port (not network byte ordered).
 	3. and port (not network byte ordered).
 
 
@@ -186,7 +186,7 @@ void shoot(char *buff, long address, int lport, int rport)
 		FD_SET(ssock, &fd);
 		FD_SET(ssock, &fd);
 
 
 		/* TO-DO: there does appear to be a problem with this select returning a zero
 		/* TO-DO: there does appear to be a problem with this select returning a zero
-		even when there is data pending in the recv queue. 
+		even when there is data pending in the recv queue.
 		please help, someone! */
 		please help, someone! */
 
 
 		ret = select(6, &fd, NULL, NULL, &tv);
 		ret = select(6, &fd, NULL, NULL, &tv);
@@ -291,7 +291,7 @@ int main(int argc, char *argv[])
 
 
 	shoot(buff, address, lport, rport);
 	shoot(buff, address, lport, rport);
 
 
-	/* visual studio closes the debug console as soon as the 
+	/* visual studio closes the debug console as soon as the
 	program terminates. this is to hold the window from collapsing
 	program terminates. this is to hold the window from collapsing
 	Uncomment it if needed.
 	Uncomment it if needed.
 	getchar();*/
 	getchar();*/
@@ -304,7 +304,7 @@ int main(int argc, char *argv[])
 /*
 /*
 shoot will exercise the all types of sip servers.
 shoot will exercise the all types of sip servers.
 it is not to be used to measure round-trips and general connectivity.
 it is not to be used to measure round-trips and general connectivity.
-use ping for that. 
+use ping for that.
 written by farhan on 10th august, 2000.
 written by farhan on 10th august, 2000.
 
 
 TO-DO:
 TO-DO:

+ 5 - 5
test/misc/code/shoot2.c

@@ -34,7 +34,7 @@ regex_t *regexp;
 #define VIA_BEGIN_STR "Via: SIP/2.0/UDP "
 #define VIA_BEGIN_STR "Via: SIP/2.0/UDP "
 #define VIA_BEGIN_STR_LEN 17
 #define VIA_BEGIN_STR_LEN 17
 
 
-/* take either a dot.decimal string of ip address or a 
+/* take either a dot.decimal string of ip address or a
 domain name and returns a NETWORK ordered long int containing
 domain name and returns a NETWORK ordered long int containing
 the address. i chose to internally represent the address as long for speedier
 the address. i chose to internally represent the address as long for speedier
 comparisons.
 comparisons.
@@ -140,7 +140,7 @@ add_via(char *mes)
 /*
 /*
 shoot:
 shoot:
 takes:
 takes:
-	1. the text message of buff to 
+	1. the text message of buff to
 	2. the address (network ordered byte order)
 	2. the address (network ordered byte order)
 	3. and port (not network byte ordered).
 	3. and port (not network byte ordered).
 
 
@@ -235,7 +235,7 @@ void shoot(char *buff, long address, int lport, int rport)
 		FD_SET(ssock, &fd);
 		FD_SET(ssock, &fd);
 
 
 		/* TO-DO: there does appear to be a problem with this select returning a zero
 		/* TO-DO: there does appear to be a problem with this select returning a zero
-		even when there is data pending in the recv queue. 
+		even when there is data pending in the recv queue.
 		please help, someone! */
 		please help, someone! */
 
 
 		ret = select(6, &fd, NULL, NULL, &tv);
 		ret = select(6, &fd, NULL, NULL, &tv);
@@ -378,7 +378,7 @@ int main(int argc, char *argv[])
 
 
 	shoot(buff, address, lport, rport);
 	shoot(buff, address, lport, rport);
 
 
-	/* visual studio closes the debug console as soon as the 
+	/* visual studio closes the debug console as soon as the
 	program terminates. this is to hold the window from collapsing
 	program terminates. this is to hold the window from collapsing
 	Uncomment it if needed.
 	Uncomment it if needed.
 	getchar();*/
 	getchar();*/
@@ -391,7 +391,7 @@ int main(int argc, char *argv[])
 /*
 /*
 shoot will exercise the all types of sip servers.
 shoot will exercise the all types of sip servers.
 it is not to be used to measure round-trips and general connectivity.
 it is not to be used to measure round-trips and general connectivity.
-use ping for that. 
+use ping for that.
 written by farhan on 10th august, 2000.
 written by farhan on 10th august, 2000.
 
 
 TO-DO:
 TO-DO:

+ 2 - 2
test/misc/code/sock_conn.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 2 - 2
test/misc/code/sock_disc.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 3 - 3
test/misc/code/test.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2001-2003 FhG Fokus
  *
  *
  * This file is part of Kamailio, a free SIP server.
  * This file is part of Kamailio, a free SIP server.
@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 4 - 4
test/misc/code/udp.c

@@ -27,8 +27,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
@@ -127,7 +127,7 @@ void shoot()
 #endif
 #endif
 
 
 
 
-	/* destination socket init here because it could be changed in a 
+	/* destination socket init here because it could be changed in a
 	   case of a redirect */
 	   case of a redirect */
 	addr.sin_addr.s_addr = inet_addr("192.168.99.100");
 	addr.sin_addr.s_addr = inet_addr("192.168.99.100");
 	addr.sin_port = htons((short)888);
 	addr.sin_port = htons((short)888);
@@ -152,7 +152,7 @@ void shoot()
 	}
 	}
 	printf("BSD compat: %d\n", bsd_compat);
 	printf("BSD compat: %d\n", bsd_compat);
 
 
-	/* here we go for the number of nretries which heavily depends on the 
+	/* here we go for the number of nretries which heavily depends on the
 	   mode */
 	   mode */
 	for(i = 0; i <= nretries; i++) {
 	for(i = 0; i <= nretries; i++) {
 		/* lets fire the request to the server and store when we did */
 		/* lets fire the request to the server and store when we did */

+ 2 - 2
test/misc/code/udp_flood_disc.c

@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 3 - 3
test/misc/code/udp_test_proxy.c

@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2001-2003 FhG Fokus
  *
  *
  * This file is part of Kamailio, a free SIP server.
  * This file is part of Kamailio, a free SIP server.
@@ -13,8 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 5 - 5
test/misc/code/via_parse.c

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 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
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
@@ -24,7 +24,7 @@
 /* parsing:           compact form:
 /* parsing:           compact form:
  */
  */
 
 
-/* 
+/*
  * still TODO/test:
  * still TODO/test:
  *  - parse next via
  *  - parse next via
  *  - return a list of header structs
  *  - return a list of header structs
@@ -118,9 +118,9 @@ enum
 #define LOG(lev, fmt, args...) fprintf(stderr, fmt, ##args)
 #define LOG(lev, fmt, args...) fprintf(stderr, fmt, ##args)
 
 
 
 
-/* entry state must be F_PARAM, or saved_state=F_PARAM and 
+/* entry state must be F_PARAM, or saved_state=F_PARAM and
  * state=F_{LF,CR,CRLF}!
  * state=F_{LF,CR,CRLF}!
- * output state = L_PARAM or F_PARAM or END_OF_HEADER 
+ * output state = L_PARAM or F_PARAM or END_OF_HEADER
  * (and saved_state= last state); everything else => error */
  * (and saved_state= last state); everything else => error */
 __inline char *parse_via_param(char *p, int *pstate, int *psaved_state)
 __inline char *parse_via_param(char *p, int *pstate, int *psaved_state)
 {
 {