- Timestamp:
- Dec 29, 2009 4:53:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_common.c
r2966 r3037 339 339 */ 340 340 //PJ_ASSERT_RETURN(a->addr.sa_family == PJ_AF_INET || 341 // a->addr.sa_family == PJ_AF_INET6, PJ_ EAFNOTSUP);341 // a->addr.sa_family == PJ_AF_INET6, PJ_FALSE); 342 342 343 343 if (a->addr.sa_family!=PJ_AF_INET && a->addr.sa_family!=PJ_AF_INET6) { … … 373 373 const pj_sockaddr *a = (const pj_sockaddr*) addr; 374 374 PJ_ASSERT_RETURN(a->addr.sa_family == PJ_AF_INET || 375 a->addr.sa_family == PJ_AF_INET6, PJ_EAFNOTSUP);375 a->addr.sa_family == PJ_AF_INET6, 0); 376 376 return a->addr.sa_family == PJ_AF_INET6 ? 377 377 sizeof(pj_in6_addr) : sizeof(pj_in_addr); … … 385 385 const pj_sockaddr *a = (const pj_sockaddr*) addr; 386 386 PJ_ASSERT_RETURN(a->addr.sa_family == PJ_AF_INET || 387 a->addr.sa_family == PJ_AF_INET6, PJ_EAFNOTSUP);387 a->addr.sa_family == PJ_AF_INET6, 0); 388 388 return a->addr.sa_family == PJ_AF_INET6 ? 389 389 sizeof(pj_sockaddr_in6) : sizeof(pj_sockaddr_in);
Note: See TracChangeset
for help on using the changeset viewer.