From: Thorsten Behrens Date: Wed, 2 Jul 2014 22:15:03 +0000 (+0200) Subject: ceph_argparse_flag has no regular 3rd parameter. X-Git-Tag: v0.84~158^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c7c7223a2beb4ffb953d89d316f87d350677063;p=ceph.git ceph_argparse_flag has no regular 3rd parameter. With clang warning: 'va_start' has undefined behavior with reference types, noticing copy-paste mistake on ceph_argparse_flag. Signed-off-by: Thorsten Behrens --- diff --git a/src/tools/ceph_authtool.cc b/src/tools/ceph_authtool.cc index 082dddfd151..9156b13a968 100644 --- a/src/tools/ceph_authtool.cc +++ b/src/tools/ceph_authtool.cc @@ -81,7 +81,7 @@ int main(int argc, const char **argv) gen_print_key = true; } else if (ceph_argparse_witharg(args, i, &val, "-a", "--add-key", (char*)NULL)) { add_key = val; - } else if (ceph_argparse_flag(args, i, &val, "-l", "--list", (char*)NULL)) { + } else if (ceph_argparse_flag(args, i, "-l", "--list", (char*)NULL)) { list = true; } else if (ceph_argparse_witharg(args, i, &val, "--caps", (char*)NULL)) { caps_fn = val;