]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blockdev: make functions static
authorWanlong Gao <wanlong.gao@gmail.com>
Tue, 27 Dec 2011 14:09:19 +0000 (22:09 +0800)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Jan 2012 16:09:27 +0000 (17:09 +0100)
make the functions in blockdev to statics.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
disk-utils/blockdev.c

index 338ecf176effa7d29fccf32bba6648aa72eb5561..71796bfe46b5ec8362e46f528ce573f5c8e70d3c 100644 (file)
@@ -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"));
 }