From f0ddf6cc7788b290c2149e83e7a29d193bf7f93f Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Fri, 29 Mar 2013 16:27:32 -0700 Subject: [PATCH] rbd: remove unused argument from do_diff() Signed-off-by: Josh Durgin --- src/rbd.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rbd.cc b/src/rbd.cc index 53e6d9f03c4..93f0a69739b 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -1144,8 +1144,7 @@ static int diff_cb(uint64_t ofs, size_t len, bool zero, void *arg) return 0; } -static int do_diff(librbd::Image& image, const char *fromsnapname, - const char *endsnapname) +static int do_diff(librbd::Image& image, const char *fromsnapname) { int64_t r; librbd::image_info_t info; @@ -2710,7 +2709,7 @@ if (!set_conf_param(v, p1, p2, p3)) { \ break; case OPT_DIFF: - r = do_diff(image, fromsnapname, snapname); + r = do_diff(image, fromsnapname); if (r < 0) { cerr << "rbd: diff error: " << cpp_strerror(-r) << std::endl; return EXIT_FAILURE;