mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 18:27:18 +00:00
changed r_list_length to use list->length
This commit is contained in:
parent
e00123d259
commit
f6b94d7b75
@ -49,13 +49,7 @@ R_API void r_list_init(RList *list) {
|
||||
}
|
||||
|
||||
R_API int r_list_length(const RList *list) {
|
||||
int count = 0;
|
||||
RListIter *iter = r_list_iterator (list);
|
||||
while (iter) {
|
||||
count++;
|
||||
iter = iter->n;
|
||||
}
|
||||
return count;
|
||||
return list->length;
|
||||
}
|
||||
|
||||
/* remove all elements of a list */
|
||||
|
Loading…
Reference in New Issue
Block a user