mirror of https://github.com/xzeldon/htop.git
Merge pull request #526 from Explorer09/bar-tweaks
Let BarMeterMode_characters[] be const array.
This commit is contained in:
commit
f161365d72
2
Meter.c
2
Meter.c
|
@ -260,7 +260,7 @@ static void TextMeterMode_draw(Meter* this, int x, int y, int w) {
|
||||||
|
|
||||||
/* ---------- BarMeterMode ---------- */
|
/* ---------- BarMeterMode ---------- */
|
||||||
|
|
||||||
static char BarMeterMode_characters[] = "|#*@$%&.";
|
static const char BarMeterMode_characters[] = "|#*@$%&.";
|
||||||
|
|
||||||
static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
|
static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
|
||||||
char buffer[METER_BUFFER_LEN];
|
char buffer[METER_BUFFER_LEN];
|
||||||
|
|
Loading…
Reference in New Issue