diff options
author | Wang Cong <xiyou.wangcong@gmail.com> | 2009-01-21 13:22:49 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-01-21 13:22:49 -0500 |
commit | 86179a05070d7678e7145b32cb28249d890170ba (patch) | |
tree | c4175ad55481eb077a1bf12ab875f75264140a3b /btrfsctl.c | |
parent | 901314f07053d1a3504ce20a69eb07f08bba0ac1 (diff) |
btrfs-progs: make several functions static
Make several functions static, and make one argument const.
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Diffstat (limited to 'btrfsctl.c')
-rw-r--r-- | btrfsctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,7 +43,7 @@ struct btrfs_ioctl_vol_args { char name[BTRFS_VOL_NAME_MAX]; }; static inline int ioctl(int fd, int define, void *arg) { return 0; } #endif -void print_usage(void) +static void print_usage(void) { printf("usage: btrfsctl [ -d file|dir] [ -s snap_name subvol|tree ]\n"); printf(" [-r size] [-A device] [-a] [-c]\n"); @@ -59,7 +59,7 @@ void print_usage(void) exit(1); } -int open_file_or_dir(char *fname) +static int open_file_or_dir(const char *fname) { int ret; struct stat st; |