Changeset 509 for pjproject/trunk
- Timestamp:
- Jun 15, 2006 11:04:33 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/sock.c
r433 r509 97 97 98 98 /* pj_inet_ntoa() */ 99 p = pj_inet_ntoa(addr);99 p = (unsigned char*) pj_inet_ntoa(addr); 100 100 if (!p) 101 101 return -20; 102 102 103 if (pj_strcmp2(&s, p) != 0)103 if (pj_strcmp2(&s, (char*)p) != 0) 104 104 return -30; 105 105 -
pjproject/trunk/pjlib/src/pjlib-test/test.h
r433 r509 22 22 #include <pj/types.h> 23 23 24 #define GROUP_LIBC 025 #define GROUP_OS 026 #define GROUP_DATA_STRUCTURE 027 #define GROUP_NETWORK 028 #define GROUP_FILE 024 #define GROUP_LIBC 1 25 #define GROUP_OS 1 26 #define GROUP_DATA_STRUCTURE 1 27 #define GROUP_NETWORK 1 28 #define GROUP_FILE 1 29 29 30 30 #define INCLUDE_ERRNO_TEST GROUP_LIBC -
pjproject/trunk/pjlib/src/pjlib-test/thread.c
r433 r509 73 73 pj_thread_desc desc; 74 74 pj_thread_t *this_thread; 75 unsigned id = *pcounter;75 unsigned id; 76 76 pj_status_t rc; 77 77 78 id = *pcounter; 78 79 TRACE__((THIS_FILE, " thread %d running..", id)); 79 80 -
pjproject/trunk/pjlib/src/pjlib-test/timestamp.c
r433 r509 196 196 } 197 197 198 sleep(0);198 pj_thread_sleep(0); 199 199 200 200 /* Mark end time. */ -
pjproject/trunk/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c
r65 r509 150 150 rc = pj_ioqueue_poll(ioqueue, &timeout); 151 151 } 152 return 0; 152 153 } 153 154 -
pjproject/trunk/pjlib/src/pjlib-test/udp_echo_srv_sync.c
r65 r509 56 56 } 57 57 } 58 return 0; 58 59 } 59 60 … … 159 160 } 160 161 } 162 return 0; 161 163 } 162 164 -
pjproject/trunk/pjmedia/src/pjmedia/portaudio/pa_unix_oss.c
r65 r509 962 962 int temp, nativeFormat; 963 963 int sr = (int)sampleRate; 964 PaSampleFormat availableFormats , hostFormat;964 PaSampleFormat availableFormats = 0, hostFormat; 965 965 int chans = component->userChannelCount; 966 966 int frgmt; … … 1165 1165 const PaDeviceInfo *inputDeviceInfo = 0, *outputDeviceInfo = 0; 1166 1166 int bpInitialized = 0; 1167 double inLatency , outLatency;1167 double inLatency=0, outLatency=0; 1168 1168 1169 1169 /* validate platform specific flags */ … … 1523 1523 PaError result = paNoError; 1524 1524 PaOssStream *stream = (PaOssStream*)userData; 1525 unsigned long framesAvail , framesProcessed;1525 unsigned long framesAvail=0, framesProcessed; 1526 1526 int callbackResult = paContinue; 1527 1527 int triggered = stream->triggered; /* See if SNDCTL_DSP_TRIGGER has been issued already */ -
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r501 r509 905 905 } 906 906 } else { 907 pjmedia_sdp_session *answer ;907 pjmedia_sdp_session *answer = NULL; 908 908 909 909 status = create_answer(pool, neg->neg_local_sdp, neg->neg_remote_sdp, -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r503 r509 650 650 pj_status_t status; 651 651 652 PJSUA_LOCK();653 654 652 status = pj_sock_socket(PJ_AF_INET, PJ_SOCK_DGRAM, 0, &sock); 655 653 if (status != PJ_SUCCESS) { 656 654 pjsua_perror(THIS_FILE, "socket() error", status); 657 goto on_return;655 return status; 658 656 } 659 657 … … 662 660 pjsua_perror(THIS_FILE, "bind() error", status); 663 661 pj_sock_close(sock); 664 goto on_return;662 return status; 665 663 } 666 664 … … 686 684 pjsua_perror(THIS_FILE, "Error resolving with STUN", status); 687 685 pj_sock_close(sock); 688 goto on_return;686 return status; 689 687 } 690 688 … … 698 696 pjsua_perror(THIS_FILE, "Unable to resolve local host", status); 699 697 pj_sock_close(sock); 700 goto on_return;698 return status; 701 699 } 702 700 … … 709 707 *p_sock = sock; 710 708 711 on_return:712 713 PJSUA_UNLOCK();714 715 709 PJ_LOG(4,(THIS_FILE, "SIP UDP socket reachable at %s:%d", 716 710 pj_inet_ntoa(p_pub_addr->sin_addr), 717 711 (int)pj_ntohs(p_pub_addr->sin_port))); 718 712 719 return status;713 return PJ_SUCCESS; 720 714 } 721 715 … … 750 744 751 745 pjsua_transport_config config; 752 pj_sock_t sock ;746 pj_sock_t sock = PJ_INVALID_SOCKET; 753 747 pj_sockaddr_in pub_addr; 754 748 pjsip_host_port addr_name; … … 798 792 PJSUA_UNLOCK(); 799 793 800 return PJ_SUCCESS;794 return status; 801 795 } 802 796
Note: See TracChangeset
for help on using the changeset viewer.