diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-08-23 18:39:58 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-08-24 20:26:37 +0200 |
commit | 7c1e1d5481fe8d2e757469179f9ccd14e8838ed1 (patch) | |
tree | c0ccabd792d82e364a9646f19b0336773333742b /qobject/json-streamer.c | |
parent | c473c379e1069079542c51f7063d44c2692abe6b (diff) | |
download | qemu-7c1e1d5481fe8d2e757469179f9ccd14e8838ed1.zip qemu-7c1e1d5481fe8d2e757469179f9ccd14e8838ed1.tar.gz qemu-7c1e1d5481fe8d2e757469179f9ccd14e8838ed1.tar.bz2 |
json: remove useless return value from lexer/parser
The lexer always returns 0 when char feeding. Furthermore, none of the
caller care about the return value.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180326150916.9602-10-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180823164025.12553-32-armbru@redhat.com>
Diffstat (limited to 'qobject/json-streamer.c')
-rw-r--r-- | qobject/json-streamer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qobject/json-streamer.c b/qobject/json-streamer.c index c51c202..78dfff2 100644 --- a/qobject/json-streamer.c +++ b/qobject/json-streamer.c @@ -118,15 +118,15 @@ void json_message_parser_init(JSONMessageParser *parser, json_lexer_init(&parser->lexer, json_message_process_token); } -int json_message_parser_feed(JSONMessageParser *parser, +void json_message_parser_feed(JSONMessageParser *parser, const char *buffer, size_t size) { - return json_lexer_feed(&parser->lexer, buffer, size); + json_lexer_feed(&parser->lexer, buffer, size); } -int json_message_parser_flush(JSONMessageParser *parser) +void json_message_parser_flush(JSONMessageParser *parser) { - return json_lexer_flush(&parser->lexer); + json_lexer_flush(&parser->lexer); } void json_message_parser_destroy(JSONMessageParser *parser) |