diff options
author | Karel Zak | 2012-07-16 18:52:30 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-16 18:52:30 +0200 |
commit | 583f14ccbde9af969a60527a004203c4a488e659 (patch) | |
tree | e019b0f794b34e7539c5b031820f94944d902b7c /sys-utils/lscpu.c | |
parent | setarch: fix compiler warning [-Wmissing-prototypes] (diff) | |
download | kernel-qcow2-util-linux-583f14ccbde9af969a60527a004203c4a488e659.tar.gz kernel-qcow2-util-linux-583f14ccbde9af969a60527a004203c4a488e659.tar.xz kernel-qcow2-util-linux-583f14ccbde9af969a60527a004203c4a488e659.zip |
lscpu: fix compiler warning [-Wmissing-prototypes]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index e48f59579..3984b2d50 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) * * "<pattern> : <key>" */ -int lookup(char *line, char *pattern, char **value) +static int +lookup(char *line, char *pattern, char **value) { char *p, *v; int len = strlen(pattern); |