This change is suggested by Dhaval Giani <dhaval.gi...@gmail.com>.
Polish "usage" function of cgdelete tool. Remove a level of indentation.

Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
---

 src/tools/cgdelete.c |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/tools/cgdelete.c b/src/tools/cgdelete.c
index e84cd2d..75fa907 100644
--- a/src/tools/cgdelete.c
+++ b/src/tools/cgdelete.c
@@ -35,21 +35,20 @@ static struct option const long_options[] =
 
 static void usage(int status, const char *program_name)
 {
-       if (status != 0)
+       if (status != 0) {
                fprintf(stderr, "Wrong input parameters,"
                        " try %s --help' for more information.\n",
                        program_name);
-       else {
-               fprintf(stdout, "Usage: %s [-h] [-r] "\
-                       "[[-g] <controllers>:<path>] ...\n", program_name);
-               fprintf(stdout, "Remove control group(s)\n");
-               fprintf(stdout, "  -g <controllers>:<path>   "\
-                       "Control group to be removed (-g is optional)\n");
-               fprintf(stdout, "  -h, --help                "\
-                       "Display this help\n");
-               fprintf(stdout, "  -r, --recursive           "\
-                       "Recursively remove all subgroups\n");
+               return;
        }
+       fprintf(stdout, "Usage: %s [-h] [-r] [[-g] <controllers>:<path>] ...\n",
+               program_name);
+       fprintf(stdout, "Remove control group(s)\n");
+       fprintf(stdout, "  -g <controllers>:<path>   Control group to be "\
+               "removed (-g is optional)\n");
+       fprintf(stdout, "  -h, --help                Display this help\n");
+       fprintf(stdout, "  -r, --recursive           Recursively remove "\
+               "all subgroups\n");
 }
 
 


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to