summaryrefslogtreecommitdiff
path: root/pjlib/src/pjlib-test/string.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-06-17 12:36:36 +0000
committerBenny Prijono <bennylp@teluu.com>2009-06-17 12:36:36 +0000
commit5336026593592ee0b4eacaacd93d9d119f40020e (patch)
treef49e6d6bab98e45c2f1fb52af9c80b55181f01d1 /pjlib/src/pjlib-test/string.c
parent0af5425964a96194759fcdb4c67043ad253ef58c (diff)
Part of ticket #887:
- added pj_shutdown() in pjlib-test's test.c - refactor main_symbian.cpp (it's not been used for a while) - compilation error/warning about initializing pj_str_t struct from non-constant value git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2769 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test/string.c')
-rw-r--r--pjlib/src/pjlib-test/string.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/string.c b/pjlib/src/pjlib-test/string.c
index 18cfb6c5..4f0e325d 100644
--- a/pjlib/src/pjlib-test/string.c
+++ b/pjlib/src/pjlib-test/string.c
@@ -65,7 +65,9 @@
#endif
#define HELLO_WORLD "Hello World"
+#define HELLO_WORLD_LEN 11
#define JUST_HELLO "Hello"
+#define JUST_HELLO_LEN 5
#define UL_VALUE 3456789012UL
#if 1
@@ -290,8 +292,8 @@ static int strcmp_test(void)
int string_test(void)
{
- const pj_str_t hello_world = { HELLO_WORLD, strlen(HELLO_WORLD) };
- const pj_str_t just_hello = { JUST_HELLO, strlen(JUST_HELLO) };
+ const pj_str_t hello_world = { HELLO_WORLD, HELLO_WORLD_LEN };
+ const pj_str_t just_hello = { JUST_HELLO, JUST_HELLO_LEN };
pj_str_t s1, s2, s3, s4, s5;
enum { RCOUNT = 10, RLEN = 16 };
pj_str_t random[RCOUNT];