]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qobject/json-streamer.c
Merge tag 'pull-vfio-20231009' of https://github.com/legoater/qemu into staging
[mirror_qemu.git] / qobject / json-streamer.c
index 467bc29413f42fafe1d1b2f26ae8913373e5327c..b93d97b995f9580e9d029ef5b03b740fe8e07241 100644 (file)
  */
 
 #include "qemu/osdep.h"
-#include "qemu-common.h"
 #include "qapi/error.h"
-#include "qapi/qmp/json-lexer.h"
-#include "qapi/qmp/json-parser.h"
-#include "qapi/qmp/json-streamer.h"
+#include "json-parser-int.h"
 
 #define MAX_TOKEN_SIZE (64ULL << 20)
 #define MAX_TOKEN_COUNT (2ULL << 20)
@@ -88,7 +85,7 @@ void json_message_process_token(JSONLexer *lexer, GString *input,
     g_queue_push_tail(&parser->tokens, token);
 
     if ((parser->brace_count > 0 || parser->bracket_count > 0)
-        && parser->bracket_count >= 0 && parser->bracket_count >= 0) {
+        && parser->brace_count >= 0 && parser->bracket_count >= 0) {
         return;
     }