svn commit: r334075 - head/usr.sbin/mpsutil

Baptiste Daroussin bapt at FreeBSD.org
Wed May 23 08:53:27 UTC 2018


On Wed, May 23, 2018 at 07:38:58AM +0000, Eitan Adler wrote:
> Author: eadler
> Date: Wed May 23 07:38:58 2018
> New Revision: 334075
> URL: https://svnweb.freebsd.org/changeset/base/334075
> 
> Log:
>   mpsutil: add missing braces
>   
>   Obtained from:	DragonFly (c5d53f11a9510c5c79e196857a1200925fffacc8)
> 
> Modified:
>   head/usr.sbin/mpsutil/mpsutil.c
> 
> Modified: head/usr.sbin/mpsutil/mpsutil.c
> ==============================================================================
> --- head/usr.sbin/mpsutil/mpsutil.c	Wed May 23 06:15:55 2018	(r334074)
> +++ head/usr.sbin/mpsutil/mpsutil.c	Wed May 23 07:38:58 2018	(r334075)
> @@ -59,9 +59,10 @@ 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 {
Style

>  			(*cmd)->handler(&args, &desc);
>  			if (strncmp((*cmd)->set, "top", 3) == 0)
>  				fprintf(stderr, "%s %-30s\t%s\n",
> @@ -69,6 +70,7 @@ usage(void)
>  			else
>  				fprintf(stderr, "%s %s %-30s\t%s\n",
>  				    (*cmd)->set, (*cmd)->name, args, desc);
> +		}
>  	}
>  	exit(1);
>  }
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20180523/f217c908/attachment.sig>


More information about the svn-src-head mailing list