Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2020 20:45:55 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360672 - stable/11/usr.sbin/mpsutil
Message-ID:  <202005052045.045Kjt0H082627@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue May  5 20:45:54 2020
New Revision: 360672
URL: https://svnweb.freebsd.org/changeset/base/360672

Log:
  MFC r334075 (by eadler):
  
  mpsutil: add missing braces
  
  Obtained from:	DragonFly (c5d53f11a9510c5c79e196857a1200925fffacc8)
  
  MFC r334085 (by eadler):
  
  mpsutil: correct style
  
  Reported by:	bapt

Modified:
  stable/11/usr.sbin/mpsutil/mpsutil.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/mpsutil/mpsutil.c
==============================================================================
--- stable/11/usr.sbin/mpsutil/mpsutil.c	Tue May  5 19:54:30 2020	(r360671)
+++ stable/11/usr.sbin/mpsutil/mpsutil.c	Tue May  5 20:45:54 2020	(r360672)
@@ -59,9 +59,9 @@ usage(void)
 	fprintf(stderr, "usage: %s [-u unit] <command> ...\n\n", getprogname());
 	fprintf(stderr, "Commands include:\n");
 	SET_FOREACH(cmd, MPS_DATASET(usage)) {
-		if (*cmd == NULL)
+		if (*cmd == NULL) {
 			fprintf(stderr, "\n");
-		else
+		} else {
 			(*cmd)->handler(&args, &desc);
 			if (strncmp((*cmd)->set, "top", 3) == 0)
 				fprintf(stderr, "%s %-30s\t%s\n",
@@ -69,6 +69,7 @@ usage(void)
 			else
 				fprintf(stderr, "%s %s %-30s\t%s\n",
 				    (*cmd)->set, (*cmd)->name, args, desc);
+		}
 	}
 	exit(1);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005052045.045Kjt0H082627>