summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2013-11-22 14:46:13 -0800
committerChad Versace <chad.versace@linux.intel.com>2013-11-25 10:34:03 -0800
commit4ed6347af323ee0c28f888946eed194d82341aa7 (patch)
tree2f625c0472cacfad3b43f8cb2b41473837753391
parent9fa8dc7b0e925bc987435ee2988d208de4eeb96b (diff)
waffle: Use enum waffle_error for waffle_error_to_string()
This continues the conversion of int32_t to `enum waffle_error` began in commit a5cd4c7. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--include/waffle/waffle.h2
-rw-r--r--man/waffle_error.3.xml2
-rw-r--r--src/waffle/api/waffle_error.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/waffle/waffle.h b/include/waffle/waffle.h
index 5f29a5e..b5477f5 100644
--- a/include/waffle/waffle.h
+++ b/include/waffle/waffle.h
@@ -96,7 +96,7 @@ WAFFLE_API const struct waffle_error_info*
waffle_error_get_info(void);
WAFFLE_API const char*
-waffle_error_to_string(int32_t e);
+waffle_error_to_string(enum waffle_error e);
// ---------------------------------------------------------------------------
// waffle_enum
diff --git a/man/waffle_error.3.xml b/man/waffle_error.3.xml
index 33bf8a5..718a48e 100644
--- a/man/waffle_error.3.xml
+++ b/man/waffle_error.3.xml
@@ -64,7 +64,7 @@ struct waffle_error_info {
<funcprototype>
<funcdef>const char* <function>waffle_error_to_string</function></funcdef>
- <paramdef>int32_t <parameter>e</parameter></paramdef>
+ <paramdef>enum waffle_error<parameter>e</parameter></paramdef>
</funcprototype>
</funcsynopsis>
diff --git a/src/waffle/api/waffle_error.c b/src/waffle/api/waffle_error.c
index 6e29061..b29d62e 100644
--- a/src/waffle/api/waffle_error.c
+++ b/src/waffle/api/waffle_error.c
@@ -45,7 +45,7 @@ waffle_error_get_info(void)
}
const char*
-waffle_error_to_string(int32_t e)
+waffle_error_to_string(enum waffle_error e)
{
switch (e) {
#define CASE(x) case x: return #x