- Timestamp:
- Jan 21, 2007 5:53:39 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/lock.c
r66 r893 60 60 { 61 61 pj_lock_t *p_lock; 62 pj_mutex_t *mutex; 62 63 pj_status_t rc; 63 64 … … 69 70 70 71 pj_memcpy(p_lock, &mutex_lock_template, sizeof(pj_lock_t)); 71 rc = pj_mutex_create(pool, name, type, (pj_mutex_t**)&p_lock->lock_object);72 rc = pj_mutex_create(pool, name, type, &mutex); 72 73 if (rc != PJ_SUCCESS) 73 74 return rc; 74 75 76 p_lock->lock_object = mutex; 75 77 *lock = p_lock; 76 78 return PJ_SUCCESS; … … 146 148 { 147 149 pj_lock_t *p_lock; 150 pj_sem_t *sem; 148 151 pj_status_t rc; 149 152 … … 155 158 156 159 pj_memcpy(p_lock, &sem_lock_template, sizeof(pj_lock_t)); 157 rc = pj_sem_create( pool, name, initial, max, 158 (pj_sem_t**)&p_lock->lock_object); 160 rc = pj_sem_create( pool, name, initial, max, &sem); 159 161 if (rc != PJ_SUCCESS) 160 162 return rc; 161 163 164 p_lock->lock_object = sem; 162 165 *lock = p_lock; 163 166 -
pjproject/trunk/pjmedia/src/pjmedia/BladeMP3EncDLL.h
r783 r893 27 27 28 28 #ifdef __GNUC__ 29 #define ATTRIBUTE_PACKED __attribute__((packed)) 29 //#define ATTRIBUTE_PACKED __attribute__((packed)) 30 #define ATTRIBUTE_PACKED 30 31 #else 31 32 #define ATTRIBUTE_PACKED … … 242 243 typedef unsigned long (*BECLOSESTREAM) (HBE_STREAM); 243 244 typedef void (*BEVERSION) (PBE_VERSION); 244 typedef unsigned long (*BEWRITEVBRHEADER) ( LPCSTR);245 typedef unsigned long (*BEWRITEVBRHEADER) (const char*); 245 246 typedef unsigned long (*BEWRITEINFOTAG) (HBE_STREAM, const char * ); 246 247 -
pjproject/trunk/pjmedia/src/pjmedia/echo_speex.c
r823 r893 574 574 } 575 575 576 -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r882 r893 1115 1115 if (config->udp_cfg.tls_setting.timeout.sec) { 1116 1116 pj_ansi_sprintf(line, "--tls-neg-timeout %d\n", 1117 config->udp_cfg.tls_setting.timeout.sec);1117 (int)config->udp_cfg.tls_setting.timeout.sec); 1118 1118 pj_strcat2(&cfg, line); 1119 1119 } -
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r829 r893 1279 1279 */ 1280 1280 pj_status_t status; 1281 const void *p_hdr; 1281 1282 const pjmedia_rtp_hdr *hdr; 1282 1283 pj_ssize_t size; … … 1288 1289 strm->bytes_per_frame, 1289 1290 strm->samples_per_frame, 1290 (const void**)&hdr, &hdrlen);1291 &p_hdr, &hdrlen); 1291 1292 if (status == PJ_SUCCESS) { 1292 1293 1293 1294 //PJ_LOG(4,(THIS_FILE, "\t\tTx seq=%d", pj_ntohs(hdr->seq))); 1295 1296 hdr = (const pjmedia_rtp_hdr*) p_hdr; 1294 1297 1295 1298 /* Copy RTP header to packet */ -
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r882 r893 455 455 /* Find next Record-Route header. */ 456 456 rr = rr->next; 457 if (rr == ( pjsip_rr_hdr*)&rdata->msg_info.msg->hdr)457 if (rr == (void*)&rdata->msg_info.msg->hdr) 458 458 break; 459 459 rr = pjsip_msg_find_hdr(rdata->msg_info.msg, PJSIP_H_RECORD_ROUTE, rr); -
pjproject/trunk/pjsip/src/test-pjsip/msg_test.c
r624 r893 113 113 static pj_status_t test_entry( pj_pool_t *pool, struct test_msg *entry ) 114 114 { 115 pjsip_msg *parsed_msg, *ref_msg ;115 pjsip_msg *parsed_msg, *ref_msg = NULL; 116 116 static pjsip_msg *print_msg; 117 117 pj_status_t status = PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.