aboutsummaryrefslogtreecommitdiffstats
path: root/mergecap.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-02-13 00:03:51 -0800
committerGuy Harris <gharris@sonic.net>2021-02-13 01:25:39 -0800
commit24acef08857f97928db5f6de8a91370dd404f0da (patch)
tree5cd2a8bdb8c341be189c305989830f553ce46f51 /mergecap.c
parent28dbff322be940edab90e25a2bc1ded3d6d0ad8b (diff)
wiretap: file types have a name and a description.
The "short name" is really just the name, used to look it up. The "name" is really a description intended solely for human consumption. Rename the fields, and the functions that access them, to match. The "description" maintained by Lua for file type handlers is used *only* for one debugging message; we should probably just eliminate it. Call it an "internal description" for now.
Diffstat (limited to 'mergecap.c')
-rw-r--r--mergecap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mergecap.c b/mergecap.c
index ed6a6790ac..f9a6c417eb 100644
--- a/mergecap.c
+++ b/mergecap.c
@@ -138,8 +138,8 @@ list_capture_types(void) {
fprintf(stderr, "mergecap: The available capture file types for the \"-F\" flag are:\n");
for (i = 0; i < WTAP_NUM_FILE_TYPES_SUBTYPES; i++) {
if (wtap_dump_can_open(i)) {
- captypes[i].sstr = wtap_file_type_subtype_short_string(i);
- captypes[i].lstr = wtap_file_type_subtype_string(i);
+ captypes[i].sstr = wtap_file_type_subtype_name(i);
+ captypes[i].lstr = wtap_file_type_subtype_description(i);
list = g_slist_insert_sorted(list, &captypes[i], string_compare);
}
}
@@ -170,7 +170,7 @@ merge_callback(merge_event event, int num,
case MERGE_EVENT_INPUT_FILES_OPENED:
for (i = 0; i < in_file_count; i++) {
fprintf(stderr, "mergecap: %s is type %s.\n", in_files[i].filename,
- wtap_file_type_subtype_string(wtap_file_type_subtype(in_files[i].wth)));
+ wtap_file_type_subtype_description(wtap_file_type_subtype(in_files[i].wth)));
}
break;
@@ -287,7 +287,7 @@ main(int argc, char *argv[])
break;
case 'F':
- file_type = wtap_short_string_to_file_type_subtype(optarg);
+ file_type = wtap_name_to_file_type_subtype(optarg);
if (file_type < 0) {
fprintf(stderr, "mergecap: \"%s\" isn't a valid capture file type\n",
optarg);