file_packet_provider: fix constness in declaration.

This fixes a warning (threated as error) on Windows

(ClCompile target) ->
         C:\projects\wireshark\file_packet_provider.c(84,1): warning C4028:  formal parameter 3 different from declaration [C:\projects\wireshark\build\shark_common.vcxproj]
This commit is contained in:
Dario Lombardo 2021-08-22 19:46:08 +02:00
parent 82b1092fe9
commit ee0dc72084
No known key found for this signature in database
GPG Key ID: A45A48B6693FB191
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ cap_file_provider_get_modified_block(struct packet_provider_data *prov, const fr
}
void
cap_file_provider_set_modified_block(struct packet_provider_data *prov, frame_data *fd, wtap_block_t new_block)
cap_file_provider_set_modified_block(struct packet_provider_data *prov, frame_data *fd, const wtap_block_t new_block)
{
if (!prov->frames_modified_blocks)
prov->frames_modified_blocks = g_tree_new_full(frame_cmp, NULL, NULL, (GDestroyNotify)wtap_block_unref);