diff mbox

[13/27] error: error_is_type(): don't use error_get_field()

Message ID 1343424728-22461-14-git-send-email-lcapitulino@redhat.com
State New
Headers show

Commit Message

Luiz Capitulino July 27, 2012, 9:31 p.m. UTC
It's going to be dropped.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/error.c b/error.c
index acb10a2..cdeeafe 100644
--- a/error.c
+++ b/error.c
@@ -113,7 +113,7 @@  bool error_is_type(Error *err, const char *fmt)
     end = strchr(ptr, '\'');
     assert(end != NULL);
 
-    error_class = error_get_field(err, "class");
+    error_class = qdict_get_str(err->obj, "class");
     if (strlen(error_class) != end - ptr) {
         return false;
     }