waffle: use enum waffle_error instead of int

Using the enum type instead of int makes debugging a little easier.
It just seems like the right thing to do anyway.

v2[chadv]: Update type of waffle_error_info::code in manpage.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>