Use C99 initializers so that we don't really have to worry
about the order of related things at several places.
This commit is contained in:
parent
ab5c9a0d0a
commit
0230383747
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164664
@ -34,18 +34,17 @@
|
||||
|
||||
struct convtbl convtbl[] = {
|
||||
/* mul, scale, str */
|
||||
{ BYTE, BYTES, "bytes" }, /* SC_BYTE (0) */
|
||||
{ BYTE, KILO, "KB" }, /* SC_KILOBYTE (1) */
|
||||
{ BYTE, MEGA, "MB" }, /* SC_MEGABYTE (2) */
|
||||
{ BYTE, GIGA, "GB" }, /* SC_GIGABYTE (3) */
|
||||
[SC_BYTE] = { BYTE, BYTES, "bytes" },
|
||||
[SC_KILOBYTE] = { BYTE, KILO, "KB" },
|
||||
[SC_MEGABYTE] = { BYTE, MEGA, "MB" },
|
||||
[SC_GIGABYTE] = { BYTE, GIGA, "GB" },
|
||||
|
||||
{ BIT, BITS, "b" }, /* SC_BITS (4) */
|
||||
{ BIT, KILO, "Kb" }, /* SC_KILOBITS (5) */
|
||||
{ BIT, MEGA, "Mb" }, /* SC_MEGABITS (6) */
|
||||
{ BIT, GIGA, "Gb" }, /* SC_GIGABITS (7) */
|
||||
|
||||
{ 0, 0, "" } /* SC_AUTO (8) */
|
||||
[SC_BIT] = { BIT, BITS, "b" },
|
||||
[SC_KILOBIT] = { BIT, KILO, "Kb" },
|
||||
[SC_MEGABIT] = { BIT, MEGA, "Mb" },
|
||||
[SC_GIGABIT] = { BIT, GIGA, "Gb" },
|
||||
|
||||
[SC_AUTO] = { 0, 0, "" }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user