From: Ivana Hutarova Varekova Date: Thu, 26 Sep 2013 17:30:04 +0000 (+0200) Subject: cgdelete: polish usage function X-Git-Tag: v0.41~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19a1c26c417ba89384225f998e6d0d7473c2a115;p=thirdparty%2Flibcgroup.git cgdelete: polish usage function This change is suggested by Dhaval Giani . Polish "usage" function of cgdelete tool. Remove a level of indentation. Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani Acked-by: Jan Safranek --- diff --git a/src/tools/cgdelete.c b/src/tools/cgdelete.c index e84cd2df..75fa9070 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] :] ...\n", program_name); - fprintf(stdout, "Remove control group(s)\n"); - fprintf(stdout, " -g : "\ - "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] :] ...\n", + program_name); + fprintf(stdout, "Remove control group(s)\n"); + fprintf(stdout, " -g : 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"); }