Ignore:
Timestamp:
May 10, 2006 7:24:40 PM (18 years ago)
Author:
bennylp
Message:

Merge-in RTEMS port patch by Phil Torre <ptorre@…>, alpha release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/sock_bsd.c

    r348 r433  
    2727/* 
    2828 * Address families conversion. 
    29  * The values here are indexed based on pj_addr_family-0xFF00. 
     29 * The values here are indexed based on pj_addr_family. 
    3030 */ 
    3131const pj_uint16_t PJ_AF_UNIX    = AF_UNIX; 
     
    4545/* 
    4646 * Socket types conversion. 
    47  * The values here are indexed based on pj_sock_type-0xFF00 
     47 * The values here are indexed based on pj_sock_type 
    4848 */ 
    4949const pj_uint16_t PJ_SOCK_STREAM        = SOCK_STREAM; 
     
    347347    PJ_CHECK_STACK(); 
    348348 
    349     PJ_ASSERT_RETURN(addr && len > 0, PJ_EINVAL); 
     349    PJ_ASSERT_RETURN(addr && len >= sizeof(struct sockaddr_in), PJ_EINVAL); 
    350350 
    351351    if (bind(sock, (struct sockaddr*)addr, len) != 0) 
Note: See TracChangeset for help on using the changeset viewer.