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:
Jakub Zawadzki 2017-12-07 20:37:54 +01:00
parent 42b191a657
commit 8687fca8a8
1 changed files with 14 additions and 11 deletions

View File

@ -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;
}