]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix ReprotError vs ReportError typo in JSON code
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2009 17:01:33 +0000 (17:01 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2009 17:01:33 +0000 (17:01 +0000)
* src/util/json.c: Fix ReprotError typo when YAJL is not available

src/util/json.c

index cbd02867332caa67eb528eb01e11843acfcac065..93b81869ecaf7ab92ed5e10644ea41ce4b20eca4 100644 (file)
@@ -1031,13 +1031,13 @@ cleanup:
 #else
 virJSONValuePtr virJSONValueFromString(const char *jsonstring ATTRIBUTE_UNUSED)
 {
-    ReprotError(NULL, VIR_ERR_INTERNAL_ERROR, "%s",
+    ReportError(NULL, VIR_ERR_INTERNAL_ERROR, "%s",
                 _("No JSON parser implementation is available"));
     return NULL;
 }
-char *virJSONValueToString(virJSONValuePtr object)
+char *virJSONValueToString(virJSONValuePtr object ATTRIBUTE_UNUSED)
 {
-    ReprotError(NULL, VIR_ERR_INTERNAL_ERROR, "%s",
+    ReportError(NULL, VIR_ERR_INTERNAL_ERROR, "%s",
                 _("No JSON parser implementation is available"));
     return NULL;
 }