diff options
author | Sami Kerola | 2017-02-12 01:19:33 +0100 |
---|---|---|
committer | Karel Zak | 2017-02-20 12:58:49 +0100 |
commit | 2ba641e5f3879593e36fa84872289872a4060d03 (patch) | |
tree | 4381e82a91b01343555d803c8afe772e1d15826d /disk-utils/cfdisk.c | |
parent | misc: do not use plain 0 as NULL [smatch scan] (diff) | |
download | kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.gz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.xz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.zip |
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 'disk-utils/cfdisk.c')
-rw-r--r-- | disk-utils/cfdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 4ad52842c..f06dad1c8 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -150,8 +150,8 @@ static int ui_resize; /* ncurses LINES and COLS may be actual variables or *macros*, but we need * something portable and writable */ -size_t ui_lines; -size_t ui_cols; +static size_t ui_lines; +static size_t ui_cols; /* menu item */ struct cfdisk_menuitem { @@ -245,7 +245,7 @@ struct cfdisk { /* * let's use include/debug.h stuff for cfdisk too */ -UL_DEBUG_DEFINE_MASK(cfdisk); +static UL_DEBUG_DEFINE_MASK(cfdisk); UL_DEBUG_DEFINE_MASKNAMES(cfdisk) = UL_DEBUG_EMPTY_MASKNAMES; #define CFDISK_DEBUG_INIT (1 << 1) |