]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cclsinfo: some fixes
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 28 May 2010 22:32:52 +0000 (15:32 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 10 Jun 2010 21:45:40 +0000 (14:45 -0700)
src/cclsinfo.cc

index 3e591cf290b8a3c6f7b66b79b1f29b9fdaa28bda..c9c0a6ae8593b5c97d3fc116544a69001684a501 100644 (file)
@@ -47,7 +47,6 @@ int main(int argc, const char **argv)
   DEFINE_CONF_VARS(usage);
   argv_to_vec(argc, argv, args);
   env_to_vec(args);
-  common_init(args, "cclsinfo", false, true);
 
   bool opt_name = false, opt_ver = false, opt_arch = false;
   const char *fname = NULL;
@@ -58,7 +57,7 @@ int main(int argc, const char **argv)
     } else if (CONF_ARG_EQ("arch", 'a')) {
       CONF_SAFE_SET_ARG_VAL(&opt_arch, OPT_BOOL);
     } else if (CONF_ARG_EQ("ver", 'v')) {
-      CONF_SAFE_SET_ARG_VAL(&opt_arch, OPT_BOOL);
+      CONF_SAFE_SET_ARG_VAL(&opt_ver, OPT_BOOL);
     } else  {
       if (fname)
         usage();