summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/list_i.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-05-16 13:27:46 +0000
committerBenny Prijono <bennylp@teluu.com>2008-05-16 13:27:46 +0000
commit973f06d4e3bc295be5bf96618e8c463dcfadc672 (patch)
tree612c82af67e1ee54c37e2eab08342c610fedd4b4 /pjlib/include/pj/list_i.h
parente274938dc9a1bd0a9b4d7fcb3d9f3a81dc8ae37e (diff)
Modified pj_list_size() to take const argument instead
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1958 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/list_i.h')
-rw-r--r--pjlib/include/pj/list_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/include/pj/list_i.h b/pjlib/include/pj/list_i.h
index 5701381f..8e109a90 100644
--- a/pjlib/include/pj/list_i.h
+++ b/pjlib/include/pj/list_i.h
@@ -105,9 +105,9 @@ PJ_IDEF(pj_list_type*) pj_list_search(pj_list_type *list, void *value,
}
-PJ_IDEF(pj_size_t) pj_list_size(pj_list_type *list)
+PJ_IDEF(pj_size_t) pj_list_size(const pj_list_type *list)
{
- pj_list *node = (pj_list*) ((pj_list*)list)->next;
+ const pj_list *node = (const pj_list*) ((const pj_list*)list)->next;
pj_size_t count = 0;
while (node != list) {