From: Wanlong Gao Date: Tue, 27 Dec 2011 14:09:19 +0000 (+0800) Subject: blockdev: make functions static X-Git-Tag: v2.21-rc1~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f61a097becef0f71fb0dc3156c8c8e46b49b4834;p=thirdparty%2Futil-linux.git blockdev: make functions static make the functions in blockdev to statics. Signed-off-by: Wanlong Gao --- 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")); }