aboutsummaryrefslogtreecommitdiffstats
path: root/file_packet_provider.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-07-07 22:43:29 -0700
committerGuy Harris <gharris@sonic.net>2021-07-08 00:05:35 -0700
commitdd5907d2a3f6d0ac572a76770b43422b0b82c2ab (patch)
tree88c706f42fc5b21ee0f9d12e949a02f16651a554 /file_packet_provider.c
parent6dfa2cb0ae4f15d171da8cf77f2a6e11d35d0d86 (diff)
Consistently refer to blocks that have been modified as "modified".
"User" sounds as if the blocks belong to the user; at most, the current user might have modified them directly, but they might also have, for example, run a Lua script that, unknown to them, modified comments. Also, a file might have "user comments" added by a previous user, who them wrote the file and and provided it to the current user. "Modified" seems a bit clearer than "changed".
Diffstat (limited to 'file_packet_provider.c')
-rw-r--r--file_packet_provider.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file_packet_provider.c b/file_packet_provider.c
index 2411ac5481..282f0b8733 100644
--- a/file_packet_provider.c
+++ b/file_packet_provider.c
@@ -70,7 +70,7 @@ cap_file_provider_get_interface_description(struct packet_provider_data *prov, g
}
wtap_block_t
-cap_file_provider_get_user_block(struct packet_provider_data *prov, const frame_data *fd)
+cap_file_provider_get_modified_block(struct packet_provider_data *prov, const frame_data *fd)
{
if (prov->frames_edited_blocks)
return (wtap_block_t)g_tree_lookup(prov->frames_edited_blocks, fd);
@@ -80,7 +80,7 @@ cap_file_provider_get_user_block(struct packet_provider_data *prov, const frame_
}
void
-cap_file_provider_set_user_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, wtap_block_t new_block)
{
if (!prov->frames_edited_blocks)
prov->frames_edited_blocks = g_tree_new_full(frame_cmp, NULL, NULL, (GDestroyNotify)wtap_block_unref);
@@ -88,5 +88,5 @@ cap_file_provider_set_user_block(struct packet_provider_data *prov, frame_data *
/* insert new packet block */
g_tree_replace(prov->frames_edited_blocks, fd, (gpointer)new_block);
- fd->has_user_block = TRUE;
+ fd->has_modified_block = TRUE;
}