summaryrefslogtreecommitdiff
path: root/ui/gtk/rtp_analysis.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-12-15 00:29:38 -0800
committerAnders Broman <a.broman58@gmail.com>2016-12-15 11:52:49 +0000
commitc65e5851b2eef0ef99e4cb9388eb780cd6a87aa7 (patch)
tree520a23ea24e98df2822b2b5b2f1b9975f4e87d12 /ui/gtk/rtp_analysis.c
parente6a9877c7177978ff655d6f61d7540fb835ea165 (diff)
downloadwireshark-c65e5851b2eef0ef99e4cb9388eb780cd6a87aa7.tar.gz
Make some items that don't need to be size_t guint.
Those sizes are limited by the packet sizes we support, and we only support a maximum packet size of 2^32. This squelches some compiler warnings. Remove some casts that this renders unnecessary. Change-Id: Id9a7bcf8c2ce30bbed7be6c0e28deb9cf38002e0 Reviewed-on: https://code.wireshark.org/review/19279 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/gtk/rtp_analysis.c')
-rw-r--r--ui/gtk/rtp_analysis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/rtp_analysis.c b/ui/gtk/rtp_analysis.c
index 0089624909..3decd2e41f 100644
--- a/ui/gtk/rtp_analysis.c
+++ b/ui/gtk/rtp_analysis.c
@@ -783,7 +783,7 @@ rtp_packet_save_payload(tap_rtp_save_info_t *saveinfo,
saveinfo->error_type = TAP_RTP_FILE_WRITE_ERROR;
return 0;
}
- saveinfo->count += ((int)rtpinfo->info_payload_len - rtpinfo->info_padding_count);
+ saveinfo->count += rtpinfo->info_payload_len - rtpinfo->info_padding_count;
fflush(saveinfo->fp);
saveinfo->saved = TRUE;