]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: fix compiler warning [-Wmissing-prototypes]
authorKarel Zak <kzak@redhat.com>
Mon, 16 Jul 2012 16:52:30 +0000 (18:52 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jul 2012 16:52:30 +0000 (18:52 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c

index e48f59579d88aaae86ef4202f8843735fc3fb524..3984b2d5015f52e4223c0e687235f46ada1c9695 100644 (file)
@@ -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);