svn commit: r193223 - head/bin/sh

M. Warner Losh imp at bsdimp.com
Mon Jun 1 16:46:57 UTC 2009


In message: <200906011111.n51BBkZt077175 at svn.freebsd.org>
            "Ralf S. Engelschall" <rse at FreeBSD.org> writes:
: Author: rse
: Date: Mon Jun  1 11:11:46 2009
: New Revision: 193223
: URL: http://svn.freebsd.org/changeset/base/193223
: 
: Log:
:   align coding style with style(9) to avoid misunderstandings
: 
: Modified:
:   head/bin/sh/exec.c
: 
: Modified: head/bin/sh/exec.c
: ==============================================================================
: --- head/bin/sh/exec.c	Mon Jun  1 11:02:09 2009	(r193222)
: +++ head/bin/sh/exec.c	Mon Jun  1 11:11:46 2009	(r193223)
: @@ -187,7 +187,8 @@ padvance(char **path, char *name)
:  	if (*path == NULL)
:  		return NULL;
:  	start = *path;
: -	for (p = start ; *p && *p != ':' && *p != '%' ; p++);
: +	for (p = start; *p && *p != ':' && *p != '%'; p++)
: +		; /* nothing */

C already has a way of saying this:

	for (p = start; *p && *p != ':' && *p != '%'; p++)
		contionue;

Warner


More information about the svn-src-all mailing list