diff options
author | Cole Robinson | 2014-03-22 00:42:26 +0100 |
---|---|---|
committer | Luiz Capitulino | 2014-04-25 15:19:59 +0200 |
commit | f231b88db14f13ee9a41599896f57f3594c1ca8b (patch) | |
tree | cc9ae0ba27b5d6718fbc78eb26ae6b3bdea02f52 /qobject | |
parent | qerror.h: Remove unused error classes (diff) | |
download | qemu-f231b88db14f13ee9a41599896f57f3594c1ca8b.tar.gz qemu-f231b88db14f13ee9a41599896f57f3594c1ca8b.tar.xz qemu-f231b88db14f13ee9a41599896f57f3594c1ca8b.zip |
qerror.h: Remove QERR defines that are only used once
Just hardcode them in the callers
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qobject')
-rw-r--r-- | qobject/json-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qobject/json-parser.c b/qobject/json-parser.c index e7947b340c..e46c26448e 100644 --- a/qobject/json-parser.c +++ b/qobject/json-parser.c @@ -110,7 +110,7 @@ static void GCC_FMT_ATTR(3, 4) parse_error(JSONParserContext *ctxt, error_free(ctxt->err); ctxt->err = NULL; } - error_set(&ctxt->err, QERR_JSON_PARSE_ERROR, message); + error_setg(&ctxt->err, "JSON parse error, %s", message); } /** |