From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: [Patch] btrfs-progs: make several functions static
Date: Mon, 19 Jan 2009 22:47:16 +0800 [thread overview]
Message-ID: <20090119144716.GA8856@hack.private> (raw)
Make several functions static, and make one argument const.
Signed-off-by: WANG Cong <wangcong@zeuux.org>
---
diff --git a/btrfsck.c b/btrfsck.c
index 4a41e6d..c50de7d 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -1254,7 +1254,7 @@ static int fs_root_objectid(u64 objectid)
return 0;
}
-int check_fs_roots(struct btrfs_root *root)
+static int check_fs_roots(struct btrfs_root *root)
{
struct btrfs_path path;
struct btrfs_key key;
@@ -1937,7 +1937,7 @@ static int add_root_to_pending(struct extent_buffer *buf,
return 0;
}
-int check_extent_refs(struct btrfs_root *root,
+static int check_extent_refs(struct btrfs_root *root,
struct cache_tree *extent_cache)
{
struct extent_record *rec;
@@ -1972,7 +1972,7 @@ int check_extent_refs(struct btrfs_root *root,
return err;
}
-int check_extents(struct btrfs_root *root)
+static int check_extents(struct btrfs_root *root)
{
struct cache_tree extent_cache;
struct cache_tree seen;
@@ -2057,7 +2057,7 @@ int check_extents(struct btrfs_root *root)
return ret;
}
-void print_usage(void)
+static void print_usage(void)
{
fprintf(stderr, "usage: btrfsck dev\n");
fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
diff --git a/btrfsctl.c b/btrfsctl.c
index e049799..6891d66 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -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;
reply other threads:[~2009-01-19 14:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090119144716.GA8856@hack.private \
--to=xiyou.wangcong@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox