diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2017-08-19 22:24:56 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-08-19 21:54:47 +0000 |
commit | 50510a670d1ba15973d6c895eccfc0754af2852d (patch) | |
tree | 370df444ec7683745b13035cd8fc32efd2f9214c /sharkd_session.c | |
parent | 7a9b9fd136430287e583ed323c8c7f12292913ba (diff) |
sharkd: minor changes in comments, fix style.
Change-Id: I72d856bf223cea966bd505031417bc2b4dd12f82
Reviewed-on: https://code.wireshark.org/review/23136
Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'sharkd_session.c')
-rw-r--r-- | sharkd_session.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sharkd_session.c b/sharkd_session.c index 89f1fb815b..5e8ee77df1 100644 --- a/sharkd_session.c +++ b/sharkd_session.c @@ -65,9 +65,9 @@ #include <epan/dissectors/packet-rtp.h> #include <ui/rtp_media.h> #ifdef HAVE_SPEEXDSP -#include <speex/speex_resampler.h> +# include <speex/speex_resampler.h> #else -#include <codecs/speex/speex_resampler.h> +# include <codecs/speex/speex_resampler.h> #endif /* HAVE_SPEEXDSP */ #ifdef HAVE_GEOIP @@ -1627,7 +1627,7 @@ sharkd_session_process_tap_rtd_cb(void *arg) /* XXX, some dissectors are having single table and multiple timestats (mgcp, megaco), * some multiple table and single timestat (radius, h225) * and it seems that value_string is used one for timestamp-ID, other one for table-ID - * I wonder how it will gonna work with multiple timestats and multiple timestat... + * I wonder how it will gonna work with multiple timestats and multiple tables... * (for usage grep for: register_rtd_table) */ const value_string *vs = get_rtd_value_string(rtd); @@ -3088,7 +3088,8 @@ sharkd_session_process_setconf(char *buf, const jsmntok_t *tokens, int count) ret = prefs_set_pref(pref, &errmsg); printf("{\"err\":%d", ret); - if (errmsg) { + if (errmsg) + { /* Add error message for some syntax errors. */ printf(",\"errmsg\":"); json_puts_string(errmsg); @@ -3541,7 +3542,7 @@ sharkd_session_process_download(char *buf, const jsmntok_t *tokens, int count) printf(",\"mime\":"); json_puts_string(mime); printf(",\"data\":"); - json_print_base64(eo_entry->payload_data, (int) eo_entry->payload_len); /* XXX, export object will be truncated if >= 2^31 */ + json_print_base64(eo_entry->payload_data, eo_entry->payload_len); printf("}\n"); } } |