diff options
author | Guy Harris <gharris@sonic.net> | 2021-02-13 00:03:51 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-02-13 01:25:39 -0800 |
commit | 24acef08857f97928db5f6de8a91370dd404f0da (patch) | |
tree | 5cd2a8bdb8c341be189c305989830f553ce46f51 /editcap.c | |
parent | 28dbff322be940edab90e25a2bc1ded3d6d0ad8b (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 'editcap.c')
-rw-r--r-- | editcap.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -898,8 +898,8 @@ list_capture_types(FILE *stream) { fprintf(stream, "editcap: 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); } } @@ -1373,7 +1373,7 @@ main(int argc, char *argv[]) break; case 'F': - out_file_type_subtype = wtap_short_string_to_file_type_subtype(optarg); + out_file_type_subtype = wtap_name_to_file_type_subtype(optarg); if (out_file_type_subtype < 0) { fprintf(stderr, "editcap: \"%s\" isn't a valid capture file type\n\n", optarg); @@ -1550,7 +1550,7 @@ main(int argc, char *argv[]) if (verbose) { fprintf(stderr, "File %s is a %s capture file.\n", argv[optind], - wtap_file_type_subtype_string(wtap_file_type_subtype(wth))); + wtap_file_type_subtype_description(wtap_file_type_subtype(wth))); } if (skip_radiotap) { |