Author: trociny
Date: Sun Apr 21 20:51:53 2013
New Revision: 249741
URL: http://svnweb.freebsd.org/changeset/base/249741

Log:
  Remove code duplication.

Modified:
  head/sbin/hastctl/hastctl.c

Modified: head/sbin/hastctl/hastctl.c
==============================================================================
--- head/sbin/hastctl/hastctl.c Sun Apr 21 19:55:38 2013        (r249740)
+++ head/sbin/hastctl/hastctl.c Sun Apr 21 20:51:53 2013        (r249741)
@@ -504,18 +504,8 @@ main(int argc, char *argv[])
                        nv_add_string(nv, argv[ii + 1], "resource%d", ii);
                break;
        case CMD_LIST:
-               /* Obtain verbose status of the given resources. */
-               nv = nv_alloc();
-               nv_add_uint8(nv, HASTCTL_CMD_STATUS, "cmd");
-               if (argc == 0)
-                       nv_add_string(nv, "all", "resource%d", 0);
-               else {
-                       for (ii = 0; ii < argc; ii++)
-                               nv_add_string(nv, argv[ii], "resource%d", ii);
-               }
-               break;
        case CMD_STATUS:
-               /* Obtain brief status of the given resources. */
+               /* Obtain status of the given resources. */
                nv = nv_alloc();
                nv_add_uint8(nv, HASTCTL_CMD_STATUS, "cmd");
                if (argc == 0)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to