eina: fix eina_inarray_search to do linear search
authorVivek Ellur <vivek.ellur@samsung.com>
Thu, 14 May 2015 17:37:06 +0000 (19:37 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 14 May 2015 17:37:08 +0000 (19:37 +0200)
commit756ed9ccbabc202027ab2c15f25f48483e800b86
tree1dfb8ddd048009f7040be41cd5c18856adef6248
parentc3a644acff12751891ef0ee78c1bba5106c7d9a4
eina: fix eina_inarray_search to do linear search

Summary:
Currently eina_inarray_search was using binary search to search elements
which would not work on unsorted array so modified it to work as linear search.
There is already a function eina_inarray_search_sorted to work on sorted array.

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>
Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2501

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/eina/eina_inarray.c