libdabba: replace strlcpy() by strncpy().

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
libdabba: replace type-safe min() by MIN() macro.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
libdabba: remove unused max function.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
libdabba: replace is_power_of_2() by powerof2().

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
libdabba: replace container_of() macro.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Merge branch 'cleanup'