diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-03-17 17:20:40 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-03-18 00:21:12 +0000 |
commit | 946c8505418a025bd8e17be8a70ac2effa1be071 (patch) | |
tree | 11e020973f06c8386eee1f8e214caefa5a0dea76 /capchild | |
parent | 4a9c6863221e746f4e9fcc5508f692e5dc5de936 (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 'capchild')
-rw-r--r-- | capchild/capture_sync.c | 2 | ||||
-rw-r--r-- | capchild/capture_sync.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c index 25879ebdfb..4991bed501 100644 --- a/capchild/capture_sync.c +++ b/capchild/capture_sync.c @@ -1724,7 +1724,7 @@ sync_pipe_input_cb(gint source, gpointer user_data) name = end + 1; } - capture_input_drops(cap_session, num, (char*)name); + capture_input_drops(cap_session, num, name); break; } default: diff --git a/capchild/capture_sync.h b/capchild/capture_sync.h index dafd787a4e..b448b060e0 100644 --- a/capchild/capture_sync.h +++ b/capchild/capture_sync.h @@ -121,7 +121,7 @@ capture_input_new_packets(capture_session *cap_session, int to_read); * Capture child told us how many dropped packets it counted. */ extern void -capture_input_drops(capture_session *cap_session, guint32 dropped, char* interface_name); +capture_input_drops(capture_session *cap_session, guint32 dropped, const char* interface_name); /** * Capture child told us that an error has occurred while starting the capture. |