Sharkd: Fix types of prev_frame and ref_frame

The 'frame' command accepts both 'prev_frame' and 'ref_frame' as arguments.
Both should be defined as a UINTEGER rather than a BOOL.
This commit is contained in:
Zach Chadwick 2023-02-22 15:21:29 -05:00 committed by Gilbert Ramirez
parent ef0e96e447
commit 39aa3cb58a
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ json_prep(char* buf, const jsmntok_t* tokens, int count)
{"follow", "filter", 2, JSMN_STRING, SHARKD_JSON_STRING, MANDATORY},
{"frame", "frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_UINTEGER, MANDATORY},
{"frame", "proto", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
{"frame", "ref_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
{"frame", "prev_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
{"frame", "ref_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_UINTEGER, OPTIONAL},
{"frame", "prev_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_UINTEGER, OPTIONAL},
{"frame", "columns", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
{"frame", "color", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
{"frame", "bytes", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},