From: Karel Zak Date: Mon, 16 Jul 2012 16:52:30 +0000 (+0200) Subject: lscpu: fix compiler warning [-Wmissing-prototypes] X-Git-Tag: v2.22-rc1~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=583f14ccbde9af969a60527a004203c4a488e659;p=thirdparty%2Futil-linux.git lscpu: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak --- diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index e48f59579d..3984b2d501 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -246,7 +246,8 @@ static struct lscpu_coldesc coldescs[] = [COL_ONLINE] = { "ONLINE", N_("shows if Linux currently makes use of the CPU") } }; -static int column_name_to_id(const char *name, size_t namesz) +static int +column_name_to_id(const char *name, size_t namesz) { size_t i; @@ -265,7 +266,8 @@ static int column_name_to_id(const char *name, size_t namesz) * * " : " */ -int lookup(char *line, char *pattern, char **value) +static int +lookup(char *line, char *pattern, char **value) { char *p, *v; int len = strlen(pattern);