summaryrefslogtreecommitdiff
path: root/cmds-receive.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-08-09 15:20:47 -0500
committerDavid Sterba <dsterba@suse.cz>2013-09-03 19:40:54 +0200
commitfa25b35dcc39854a9f7399af86e56a34171f63a4 (patch)
tree21d7485eacb2cd1314170859ea7ed316e65052a5 /cmds-receive.c
parent116123c5f21bdb9e35abaf470592186c2353920c (diff)
btrfs-progs: mark static & remove unused from non-kernel code
Mark many functions as static, and remove any resulting dead code. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r--cmds-receive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-receive.c b/cmds-receive.c
index 7abce762..1630f64a 100644
--- a/cmds-receive.c
+++ b/cmds-receive.c
@@ -787,7 +787,7 @@ out:
}
-struct btrfs_send_ops send_ops = {
+static struct btrfs_send_ops send_ops = {
.subvol = process_subvol,
.snapshot = process_snapshot,
.mkfile = process_mkfile,
@@ -810,7 +810,7 @@ struct btrfs_send_ops send_ops = {
.utimes = process_utimes,
};
-int do_receive(struct btrfs_receive *r, const char *tomnt, int r_fd)
+static int do_receive(struct btrfs_receive *r, const char *tomnt, int r_fd)
{
int ret;
char *dest_dir_full_path;