From 4a9c6863221e746f4e9fcc5508f692e5dc5de936 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 17 Mar 2019 17:17:20 -0700 Subject: More constification, to squelch warnings. capture_input_cfilter_error_message() doesn't, and shouldn't, modify or free or... the error message, so make the pointer to it a const pointer. Change-Id: Ic14ac306add328df369af4b6e149c856f4283912 Reviewed-on: https://code.wireshark.org/review/32464 Reviewed-by: Guy Harris --- tshark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tshark.c') diff --git a/tshark.c b/tshark.c index 41025d336c..ae39a3d251 100644 --- a/tshark.c +++ b/tshark.c @@ -2536,7 +2536,7 @@ capture_input_error_message(capture_session *cap_session _U_, char *error_msg, c /* capture child detected an capture filter related error */ void -capture_input_cfilter_error_message(capture_session *cap_session, guint i, char *error_message) +capture_input_cfilter_error_message(capture_session *cap_session, guint i, const char *error_message) { capture_options *capture_opts = cap_session->capture_opts; dfilter_t *rfcode = NULL; -- cgit v1.2.3