diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-06-15 11:04:33 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-06-15 11:04:33 +0000 |
commit | a9ad94a0835ac8664e3de8fa8fba7271d30abe42 (patch) | |
tree | d091985601febebd29e1d73be0aa3e349702b20b /pjlib | |
parent | b320c9cc527559a18a666cc6143bd3f602da6ec7 (diff) |
Cleanup misc compilation warnings with gcc
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@509 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/src/pjlib-test/sock.c | 4 | ||||
-rw-r--r-- | pjlib/src/pjlib-test/test.h | 10 | ||||
-rw-r--r-- | pjlib/src/pjlib-test/thread.c | 3 | ||||
-rw-r--r-- | pjlib/src/pjlib-test/timestamp.c | 2 | ||||
-rw-r--r-- | pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c | 1 | ||||
-rw-r--r-- | pjlib/src/pjlib-test/udp_echo_srv_sync.c | 2 |
6 files changed, 13 insertions, 9 deletions
diff --git a/pjlib/src/pjlib-test/sock.c b/pjlib/src/pjlib-test/sock.c index fb689169..1bdd637e 100644 --- a/pjlib/src/pjlib-test/sock.c +++ b/pjlib/src/pjlib-test/sock.c @@ -96,11 +96,11 @@ static int format_test(void) } /* pj_inet_ntoa() */ - p = pj_inet_ntoa(addr); + p = (unsigned char*) pj_inet_ntoa(addr); if (!p) return -20; - if (pj_strcmp2(&s, p) != 0) + if (pj_strcmp2(&s, (char*)p) != 0) return -30; /* pj_gethostname() */ diff --git a/pjlib/src/pjlib-test/test.h b/pjlib/src/pjlib-test/test.h index 78478df6..53400e23 100644 --- a/pjlib/src/pjlib-test/test.h +++ b/pjlib/src/pjlib-test/test.h @@ -21,11 +21,11 @@ #include <pj/types.h> -#define GROUP_LIBC 0 -#define GROUP_OS 0 -#define GROUP_DATA_STRUCTURE 0 -#define GROUP_NETWORK 0 -#define GROUP_FILE 0 +#define GROUP_LIBC 1 +#define GROUP_OS 1 +#define GROUP_DATA_STRUCTURE 1 +#define GROUP_NETWORK 1 +#define GROUP_FILE 1 #define INCLUDE_ERRNO_TEST GROUP_LIBC #define INCLUDE_TIMESTAMP_TEST GROUP_OS diff --git a/pjlib/src/pjlib-test/thread.c b/pjlib/src/pjlib-test/thread.c index 866c7698..dc0caed2 100644 --- a/pjlib/src/pjlib-test/thread.c +++ b/pjlib/src/pjlib-test/thread.c @@ -72,9 +72,10 @@ static void* thread_proc(pj_uint32_t *pcounter) /* Test that pj_thread_register() works. */ pj_thread_desc desc; pj_thread_t *this_thread; - unsigned id = *pcounter; + unsigned id; pj_status_t rc; + id = *pcounter; TRACE__((THIS_FILE, " thread %d running..", id)); rc = pj_thread_register("thread", desc, &this_thread); diff --git a/pjlib/src/pjlib-test/timestamp.c b/pjlib/src/pjlib-test/timestamp.c index f7ff7874..285b2a3c 100644 --- a/pjlib/src/pjlib-test/timestamp.c +++ b/pjlib/src/pjlib-test/timestamp.c @@ -195,7 +195,7 @@ int timestamp_test(void) null_func(); } - sleep(0); + pj_thread_sleep(0); /* Mark end time. */ pj_get_timestamp(&t2); diff --git a/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c b/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c index 8ede493b..50db4931 100644 --- a/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c +++ b/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c @@ -149,6 +149,7 @@ static int worker_thread(void *arg) timeout.sec = 0; timeout.msec = 10; rc = pj_ioqueue_poll(ioqueue, &timeout); } + return 0; } int udp_echo_srv_ioqueue(void) diff --git a/pjlib/src/pjlib-test/udp_echo_srv_sync.c b/pjlib/src/pjlib-test/udp_echo_srv_sync.c index 34633de2..0cca64e7 100644 --- a/pjlib/src/pjlib-test/udp_echo_srv_sync.c +++ b/pjlib/src/pjlib-test/udp_echo_srv_sync.c @@ -55,6 +55,7 @@ static int worker_thread(void *arg) continue; } } + return 0; } @@ -158,6 +159,7 @@ int echo_srv_common_loop(pj_atomic_t *bytes_counter) (unsigned)(highest_bw/1000))); } } + return 0; } |