aboutsummaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk.c
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2017-02-12 00:19:33 +0000
committerKarel Zak <kzak@redhat.com>2017-02-20 12:58:49 +0100
commit2ba641e5f3879593e36fa84872289872a4060d03 (patch)
tree4381e82a91b01343555d803c8afe772e1d15826d /misc-utils/lsblk.c
parent87918040658f2fa9b1bf78f1f8f4f5c065a2e3a3 (diff)
downloadutil-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.gz
misc: add static keyword to where needed [smatch scan]
text-utils/rev.c:68:9: warning: symbol 'buf' was not declared. Should it be static? Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/lsblk.c')
-rw-r--r--misc-utils/lsblk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 5f8a02e8c1..a5efb42766 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -63,7 +63,7 @@
#include "debug.h"
-UL_DEBUG_DEFINE_MASK(lsblk);
+static UL_DEBUG_DEFINE_MASK(lsblk);
UL_DEBUG_DEFINE_MASKNAMES(lsblk) = UL_DEBUG_EMPTY_MASKNAMES;
#define LSBLK_DEBUG_INIT (1 << 1)
@@ -216,7 +216,7 @@ struct lsblk {
unsigned int sort_hidden:1; /* sort column not between output columns */
};
-struct lsblk *lsblk; /* global handler */
+static struct lsblk *lsblk; /* global handler */
/* columns[] array specifies all currently wanted output column. The columns
* are defined by infos[] array and you can specify (on command line) each
@@ -247,7 +247,7 @@ static struct libmnt_table *mtab, *swaps;
static struct libmnt_cache *mntcache;
#ifdef HAVE_LIBUDEV
-struct udev *udev;
+static struct udev *udev;
#endif
struct blkdev_cxt {