diff options
author | Gerald Combs <gerald@zing.org> | 2015-08-02 15:33:07 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-03 03:06:00 +0000 |
commit | 9557c73f81efad68ce3961a5ec18de2d985c4bb1 (patch) | |
tree | 528dab6173e9f59072f3b90d2d5c2fbdaf470023 /ui/qt/follow_stream_dialog.cpp | |
parent | 08e80b1653383fcbb42538b97e46e78d152b4893 (diff) | |
download | wireshark-9557c73f81efad68ce3961a5ec18de2d985c4bb1.tar.gz |
Make sure per-packet tap callbacks return gbooleans.
The tap API changed the return type of per-packet listener callbacks
from int to gboolean back in 2009. Update a bunch of functions and some
documentation accordingly.
Change-Id: I79affe65db975caed3cc296a7e2985b7b9cdf4cc
Reviewed-on: https://code.wireshark.org/review/9853
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/follow_stream_dialog.cpp')
-rw-r--r-- | ui/qt/follow_stream_dialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index 73a4bf208f..4059526288 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -366,7 +366,7 @@ FollowStreamDialog::readStream() } //Copy from ui/gtk/follow_udp.c -static int +static gboolean udp_queue_packet_data(void *tapdata, packet_info *pinfo, epan_dissect_t *, const void *data) { @@ -396,11 +396,11 @@ udp_queue_packet_data(void *tapdata, packet_info *pinfo, follow_info->bytes_written[follow_record->is_server] += follow_record->data->len; follow_info->payload = g_list_append(follow_info->payload, follow_record); - return 0; + return FALSE; } //Copy from ui/gtk/follow_ssl.c -static int +static gboolean ssl_queue_packet_data(void *tapdata, packet_info *pinfo, epan_dissect_t *, const void *ssl) { follow_info_t * follow_info = (follow_info_t*) tapdata; @@ -457,7 +457,7 @@ ssl_queue_packet_data(void *tapdata, packet_info *pinfo, epan_dissect_t *, const follow_info->bytes_written[from] += rec->data.data_len; } - return 0; + return FALSE; } /* |