svn commit: r193223 - head/bin/sh

Dag-Erling Smørgrav des at des.no
Mon Jun 1 17:52:26 UTC 2009


"M. Warner Losh" <imp at bsdimp.com> writes:
> : @@ -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;

It's a matter of taste.  There is plenty of precedent for

        /* nothing */ ;

and some for

        ; /* nothing */

(for varying spellings of "nothing") in the tree.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-head mailing list