From f61a097becef0f71fb0dc3156c8c8e46b49b4834 Mon Sep 17 00:00:00 2001 From: Wanlong Gao Date: Tue, 27 Dec 2011 22:09:19 +0800 Subject: [PATCH] blockdev: make functions static make the functions in blockdev to statics. Signed-off-by: Wanlong Gao --- disk-utils/blockdev.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c index 338ecf176e..71796bfe46 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")); } -- 2.47.3