Changeset 1958 for pjproject


Ignore:
Timestamp:
May 16, 2008 1:27:46 PM (17 years ago)
Author:
bennylp
Message:

Modified pj_list_size() to take const argument instead

Location:
pjproject/trunk/pjlib/include/pj
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/list.h

    r974 r1958  
    257257 * @return          Number of elements. 
    258258 */ 
    259 PJ_IDECL(pj_size_t) pj_list_size(pj_list_type *list); 
     259PJ_IDECL(pj_size_t) pj_list_size(const pj_list_type *list); 
    260260 
    261261 
  • pjproject/trunk/pjlib/include/pj/list_i.h

    r1905 r1958  
    106106 
    107107 
    108 PJ_IDEF(pj_size_t) pj_list_size(pj_list_type *list) 
     108PJ_IDEF(pj_size_t) pj_list_size(const pj_list_type *list) 
    109109{ 
    110     pj_list *node = (pj_list*) ((pj_list*)list)->next; 
     110    const pj_list *node = (const pj_list*) ((const pj_list*)list)->next; 
    111111    pj_size_t count = 0; 
    112112 
Note: See TracChangeset for help on using the changeset viewer.