From 2ba641e5f3879593e36fa84872289872a4060d03 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 12 Feb 2017 00:19:33 +0000 Subject: 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 --- disk-utils/partx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'disk-utils/partx.c') diff --git a/disk-utils/partx.c b/disk-utils/partx.c index d1964b458..a0e337b78 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -82,7 +82,7 @@ struct colinfo { }; /* columns descriptions */ -struct colinfo infos[] = { +static struct colinfo infos[] = { [COL_PARTNO] = { "NR", 0.25, SCOLS_FL_RIGHT, N_("partition number") }, [COL_START] = { "START", 0.30, SCOLS_FL_RIGHT, N_("start of the partition in sectors") }, [COL_END] = { "END", 0.30, SCOLS_FL_RIGHT, N_("end of the partition in sectors") }, @@ -99,7 +99,7 @@ struct colinfo infos[] = { /* array with IDs of enabled columns */ static int columns[NCOLS]; -size_t ncolumns; +static size_t ncolumns; static int verbose; static int partx_flags; -- cgit v1.2.3-55-g7522