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/tap-sctp-analysis.c | |
parent | 08e80b1653383fcbb42538b97e46e78d152b4893 (diff) |
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/tap-sctp-analysis.c')
-rw-r--r-- | ui/tap-sctp-analysis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tap-sctp-analysis.c b/ui/tap-sctp-analysis.c index f18cf82007..6652fe705e 100644 --- a/ui/tap-sctp-analysis.c +++ b/ui/tap-sctp-analysis.c @@ -312,7 +312,7 @@ add_address(address *vadd, sctp_assoc_info_t *info, guint16 direction) return info; } -static int +static gboolean packet(void *tapdata _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const void *data) { const struct _sctp_info *sctp_info = (const struct _sctp_info *)data; @@ -1177,7 +1177,7 @@ packet(void *tapdata _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const voi info = calc_checksum(sctp_info, info); info->n_packets++; } - return(1); + return TRUE; } |