aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-03-17 17:20:40 -0700
committerGuy Harris <guy@alum.mit.edu>2019-03-18 00:21:12 +0000
commit946c8505418a025bd8e17be8a70ac2effa1be071 (patch)
tree11e020973f06c8386eee1f8e214caefa5a0dea76 /tshark.c
parent4a9c6863221e746f4e9fcc5508f692e5dc5de936 (diff)
More constification, to squelch warnings.
capture_input_drops() doesn't, and shouldn't, modify or free or... the interface name, so make the pointer to it a const pointer. Change-Id: Iafc5c5dd9939225b3aeb8a8e36c5bdeecc394e12 Reviewed-on: https://code.wireshark.org/review/32465 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index ae39a3d251..6947c45e99 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2781,7 +2781,7 @@ report_counts_siginfo(int signum _U_)
/* capture child detected any packet drops? */
void
-capture_input_drops(capture_session *cap_session _U_, guint32 dropped, char* interface_name)
+capture_input_drops(capture_session *cap_session _U_, guint32 dropped, const char* interface_name)
{
if (print_packet_counts) {
/* We're printing packet counts to stderr.