forked from osmocom/wireshark
sharkd: fix coding style.
Change-Id: I62ff3f358d1efa3065077b0a913ba614f67f3fd7 Reviewed-on: https://code.wireshark.org/review/24727 Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl> Tested-by: Petri Dish Buildbot Reviewed-by: Jakub Zawadzki <darkjames-ws@darkjames.pl>
This commit is contained in:
parent
42b191a657
commit
8687fca8a8
|
@ -2718,7 +2718,8 @@ sharkd_session_process_frame_cb_tree(epan_dissect_t *edt, proto_tree *tree, tvbu
|
|||
printf(",\"s\":\"%s\"", severity);
|
||||
}
|
||||
|
||||
if (((proto_tree *) node)->first_child) {
|
||||
if (((proto_tree *) node)->first_child)
|
||||
{
|
||||
if (finfo->tree_type != -1)
|
||||
printf(",\"e\":%d", finfo->tree_type);
|
||||
printf(",\"n\":");
|
||||
|
@ -2946,8 +2947,10 @@ sharkd_session_process_intervals(char *buf, const jsmntok_t *tokens, int count)
|
|||
gint64 idx;
|
||||
gint64 max_idx = 0;
|
||||
|
||||
if (tok_interval) {
|
||||
if (!ws_strtou32(tok_interval, NULL, &interval_ms) || interval_ms == 0) {
|
||||
if (tok_interval)
|
||||
{
|
||||
if (!ws_strtou32(tok_interval, NULL, &interval_ms) || interval_ms == 0)
|
||||
{
|
||||
fprintf(stderr, "Invalid interval parameter: %s.\n", tok_interval);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue