Reduce explicitely recursion
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 6 Apr 2017 07:20:56 +0000 (09:20 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 6 Apr 2017 07:20:56 +0000 (09:20 +0200)
commitca2051a26b74e1140cf2ca3ea0c82c1eed5bce28
tree5556fde7a3efda42823ee2a8b98e15d94c4e20f2
parente62227977bbc161d2d0ae49951f9a4fbf02a354e
Reduce explicitely recursion

When evaluating permissions, the recursive
algorithm is replaced with an algorithm
that eliminates the tail recursion.

Change-Id: I3298c42fa658498a954f4bf7dedfad87f00ab736
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-perm.c
src/tests/test-perm/test-perm.c