mirror of https://github.com/xzeldon/htop.git
Convert unnecessary static variables
They are not used in any other function and are not used maybe uninitialized.
This commit is contained in:
parent
4979245aa5
commit
6301d5c1da
5
Meter.c
5
Meter.c
|
@ -292,9 +292,6 @@ static const char* const GraphMeterMode_dotsAscii[] = {
|
||||||
/*20*/":", /*21*/":", /*22*/":"
|
/*20*/":", /*21*/":", /*22*/":"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char* const* GraphMeterMode_dots;
|
|
||||||
static int GraphMeterMode_pixPerRow;
|
|
||||||
|
|
||||||
static void GraphMeterMode_draw(Meter* this, int x, int y, int w) {
|
static void GraphMeterMode_draw(Meter* this, int x, int y, int w) {
|
||||||
|
|
||||||
if (!this->drawData) {
|
if (!this->drawData) {
|
||||||
|
@ -303,6 +300,8 @@ static void GraphMeterMode_draw(Meter* this, int x, int y, int w) {
|
||||||
GraphData* data = this->drawData;
|
GraphData* data = this->drawData;
|
||||||
const int nValues = METER_BUFFER_LEN;
|
const int nValues = METER_BUFFER_LEN;
|
||||||
|
|
||||||
|
const char* const* GraphMeterMode_dots;
|
||||||
|
int GraphMeterMode_pixPerRow;
|
||||||
#ifdef HAVE_LIBNCURSESW
|
#ifdef HAVE_LIBNCURSESW
|
||||||
if (CRT_utf8) {
|
if (CRT_utf8) {
|
||||||
GraphMeterMode_dots = GraphMeterMode_dotsUtf8;
|
GraphMeterMode_dots = GraphMeterMode_dotsUtf8;
|
||||||
|
|
2
htop.c
2
htop.c
|
@ -93,7 +93,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
|
||||||
.highlightDelaySecs = -1,
|
.highlightDelaySecs = -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct option long_opts[] =
|
const struct option long_opts[] =
|
||||||
{
|
{
|
||||||
{"help", no_argument, 0, 'h'},
|
{"help", no_argument, 0, 'h'},
|
||||||
{"version", no_argument, 0, 'V'},
|
{"version", no_argument, 0, 'V'},
|
||||||
|
|
Loading…
Reference in New Issue