summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorWanlong Gao2011-12-27 15:09:19 +0100
committerKarel Zak2012-01-05 17:09:27 +0100
commitf61a097becef0f71fb0dc3156c8c8e46b49b4834 (patch)
treea0f623621d7449cdc8ade41b509f03ec70396afb /disk-utils
parentlscpu: fix compiler warnings (diff)
downloadkernel-qcow2-util-linux-f61a097becef0f71fb0dc3156c8c8e46b49b4834.tar.gz
kernel-qcow2-util-linux-f61a097becef0f71fb0dc3156c8c8e46b49b4834.tar.xz
kernel-qcow2-util-linux-f61a097becef0f71fb0dc3156c8c8e46b49b4834.zip
blockdev: make functions static
make the functions in blockdev to statics. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/blockdev.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c
index 338ecf176..71796bfe4 100644
--- a/disk-utils/blockdev.c
+++ b/disk-utils/blockdev.c
@@ -209,10 +209,10 @@ static int find_cmd(char *s)
return -1;
}
-void do_commands(int fd, char **argv, int d);
-void report_header(void);
-void report_device(char *device, int quiet);
-void report_all_devices(void);
+static void do_commands(int fd, char **argv, int d);
+static void report_header(void);
+static void report_device(char *device, int quiet);
+static void report_all_devices(void);
int main(int argc, char **argv)
{
@@ -278,7 +278,7 @@ int main(int argc, char **argv)
return EXIT_SUCCESS;
}
-void do_commands(int fd, char **argv, int d)
+static void do_commands(int fd, char **argv, int d)
{
int res, i, j;
int iarg;
@@ -405,7 +405,7 @@ void do_commands(int fd, char **argv, int d)
}
}
-void report_all_devices(void)
+static void report_all_devices(void)
{
FILE *procpt;
char line[200];
@@ -429,7 +429,7 @@ void report_all_devices(void)
fclose(procpt);
}
-void report_device(char *device, int quiet)
+static void report_device(char *device, int quiet)
{
int fd;
int ro, ssz, bsz;
@@ -462,7 +462,7 @@ void report_device(char *device, int quiet)
close(fd);
}
-void report_header()
+static void report_header()
{
printf(_("RO RA SSZ BSZ StartSec Size Device\n"));
}