summaryrefslogtreecommitdiffstats
path: root/src/lib/eina_graph_bfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina_graph_bfs.c')
-rw-r--r--src/lib/eina_graph_bfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eina_graph_bfs.c b/src/lib/eina_graph_bfs.c
index 651695f..2632c4a 100644
--- a/src/lib/eina_graph_bfs.c
+++ b/src/lib/eina_graph_bfs.c
@@ -37,7 +37,7 @@ static void
_eina_graph_bfs_fwalk(_Eina_Graph *_g, _Eina_Graph_BFS *_bfs, unsigned int v)
{
Eina_List *fifo = NULL;
- _Eina_Graph_Adjacents *adjs;
+ Eina_Array *adjs;
_Eina_Graph_BFS_Data *vd;
unsigned int p, w, n, i, d;
@@ -56,11 +56,11 @@ _eina_graph_bfs_fwalk(_Eina_Graph *_g, _Eina_Graph_BFS *_bfs, unsigned int v)
p = w;
d++;
- adjs = &_g->adjs[w];
- n = adjs->count;
+ adjs = _g->adjs[w];
+ n = eina_array_count_get(adjs);
for (i = 0; i < n; i++)
{
- w = adjs->data[i];
+ w = eina_array_uint_nth_get(adjs, i);
vd = &_bfs->data[w];
if (!vd->m)
{