qemu: qapi: Rename local vars in virQEMUQAPISchemaTraverseObject

Now that 'query' is no longer an argument we can reuse it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-04-12 15:55:54 +02:00
parent 06283debe3
commit cea3ed3bb1

View File

@ -86,16 +86,16 @@ virQEMUQAPISchemaTraverseObject(virJSONValuePtr cur,
struct virQEMUQAPISchemaTraverseContext *ctxt)
{
virJSONValuePtr obj;
const char *querystr = *ctxt->query;
char modifier = *querystr;
const char *query = *ctxt->query;
char modifier = *query;
if (!c_isalpha(modifier))
querystr++;
query++;
if (modifier == '+') {
obj = virQEMUQAPISchemaObjectGet("variants", querystr, "case", cur);
obj = virQEMUQAPISchemaObjectGet("variants", query, "case", cur);
} else {
obj = virQEMUQAPISchemaObjectGet("members", querystr, "name", cur);
obj = virQEMUQAPISchemaObjectGet("members", query, "name", cur);
if (modifier == '*' &&
!virJSONValueObjectHasKey(obj, "default"))