mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-04 02:20:23 +03:00
cleanup: use static vars
Drop global visibility.
This commit is contained in:
parent
46669fe9e8
commit
c7a9a1fb6c
@ -781,7 +781,7 @@ struct log_line_baton {
|
||||
const char *prefix;
|
||||
};
|
||||
|
||||
daemon_handle _lvmpolld = { .error = 0 };
|
||||
static daemon_handle _lvmpolld = { .error = 0 };
|
||||
|
||||
static daemon_handle _lvmpolld_open(const char *socket)
|
||||
{
|
||||
|
@ -273,7 +273,7 @@ static uint64_t _count = 1; /* count of repeating reports */
|
||||
static struct dm_timestamp *_initial_timestamp = NULL;
|
||||
static uint64_t _disp_factor = 512; /* display sizes in sectors */
|
||||
static char _disp_units = 's';
|
||||
const char *_program_id = DM_STATS_PROGRAM_ID; /* program_id used for reports. */
|
||||
static const char *_program_id = DM_STATS_PROGRAM_ID; /* program_id used for reports. */
|
||||
static uint64_t _statstype = 0; /* stats objects to report */
|
||||
static int _concise_output_produced = 0; /* Was any concise output already printed? */
|
||||
static int _added_target = 0; /* Count added target (no target -> no event) */
|
||||
@ -281,7 +281,7 @@ struct command;
|
||||
static const struct command *_selection_cmd = NULL; /* Command to run against each device select with -S */
|
||||
|
||||
/* string names for stats object types */
|
||||
const char * const _stats_types[] = {
|
||||
static const char * const _stats_types[] = {
|
||||
"all",
|
||||
"area",
|
||||
"region",
|
||||
|
Loading…
Reference in New Issue
Block a user