diff options
author | Michael Mann <mmann78@netscape.net> | 2016-12-15 13:01:27 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-16 03:04:11 +0000 |
commit | 232cb9a2dd87ea9cc9c88d4c32bfb7b452705130 (patch) | |
tree | ff1b2039727322c1f8e332f2040f0ba5d83c4f43 /epan/unit_strings.c | |
parent | 8efb7fece1ffefd26dacd79f5ec8722c4e01e827 (diff) | |
download | wireshark-232cb9a2dd87ea9cc9c88d4c32bfb7b452705130.tar.gz |
Remove proto_item_append_text calls in favor of BASE_UNIT_STRING.
Many proto_item_append_text calls were just adding a unit string to a field.
There's a better way to do that now.
Change-Id: Id18d5ac1ea4d8ecdc4cbe7ebaec07fbd2eab6e78
Reviewed-on: https://code.wireshark.org/review/19289
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/unit_strings.c')
-rw-r--r-- | epan/unit_strings.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/unit_strings.c b/epan/unit_strings.c index 4614eb2ce5..a927a0fb07 100644 --- a/epan/unit_strings.c +++ b/epan/unit_strings.c @@ -53,10 +53,12 @@ const unit_name_string units_byte_bytes = { " byte", " bytes" }; const unit_name_string units_octet_octets = { " octet", " octets" }; const unit_name_string units_word_words = { " word", " words" }; const unit_name_string units_tick_ticks = { " tick", " ticks" }; +const unit_name_string units_meter_meters = { " meter", " meters" }; const unit_name_string units_second_seconds = { " second", " seconds" }; const unit_name_string units_seconds = { "s", NULL }; const unit_name_string units_millisecond_milliseconds = { " millisecond", " milliseconds" }; const unit_name_string units_milliseconds = { "ms", NULL }; +const unit_name_string units_microsecond_microseconds = { " microsecond", " microseconds" }; const unit_name_string units_microseconds = { UTF8_MICRO_SIGN "s", NULL }; const unit_name_string units_nanosecond_nanoseconds = { " nanosecond", " nanoseconds" }; const unit_name_string units_nanometers = { "nm", NULL }; @@ -64,13 +66,19 @@ const unit_name_string units_degree_degrees = { " degree", " degrees" }; const unit_name_string units_decibals = { "dB", NULL }; const unit_name_string units_dbm = { "dBm", NULL }; const unit_name_string units_percent = { "%", NULL }; +const unit_name_string units_khz = { "kHz", NULL }; const unit_name_string units_mhz = { "MHz", NULL }; const unit_name_string units_ghz = { "GHz", NULL }; const unit_name_string units_hz = { "Hz", NULL }; const unit_name_string units_hz_s = { "Hz/s", NULL }; const unit_name_string units_kbit = { "kbit", NULL }; const unit_name_string units_kbps = { "Kbps", NULL }; +const unit_name_string units_kibps = { "KiB/s", NULL }; +const unit_name_string units_kmh = { "km/h", NULL }; const unit_name_string units_bit_sec = { "bits/s", NULL }; +const unit_name_string units_uW = { "uW", NULL }; +const unit_name_string units_m_per_s = { "m/s", NULL }; +const unit_name_string units_m_per_s_per_s = { " (m/s)/s", NULL }; const unit_name_string units_segment_remaining = { " segment remaining", " segments remaining" }; |