aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc-utils/lsblk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 24fb44f6de..bd5e6b7822 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -153,8 +153,8 @@ struct lsblk *lsblk; /* global handler */
int columns[NCOLS];/* enabled columns */
int ncolumns; /* number of enabled columns */
-int excludes[256];
-size_t nexcludes;
+static int excludes[256];
+static size_t nexcludes;
static struct libmnt_table *mtab, *swaps;
static struct libmnt_cache *mntcache;
@@ -1080,8 +1080,6 @@ leave:
static void parse_excludes(const char *str)
{
- nexcludes = 0;
-
while (str && *str) {
char *end = NULL;
unsigned long n;