Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2016 10:18:49 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Toomas Soome <tsoome@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r306538 - head/lib/libstand
Message-ID:  <20161001101040.Y3821@besplex.bde.org>
In-Reply-To: <201609302319.u8UNJ8oh087617@repo.freebsd.org>
References:  <201609302319.u8UNJ8oh087617@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 30 Sep 2016, Toomas Soome wrote:

> Author: tsoome
> Date: Fri Sep 30 23:19:08 2016
> New Revision: 306538
> URL: https://svnweb.freebsd.org/changeset/base/306538
>
> Log:
>  cstyle fix of cd9660_open in libstand
>
>  rS306534 did create bad cstyle by my mistake, correcting it.
>
> Modified: head/lib/libstand/cd9660.c
> ==============================================================================
> --- head/lib/libstand/cd9660.c	Fri Sep 30 23:01:37 2016	(r306537)
> +++ head/lib/libstand/cd9660.c	Fri Sep 30 23:19:08 2016	(r306538)
> @@ -356,11 +356,11 @@ cd9660_open(const char *path, struct ope
>
> 			/* if the new block is zero length, its padding */
> 			if (isonum_711(dp->length) == 0) {
> -			    /* skip to next block, if any */
> -			    off = boff * ISO_DEFAULT_BLOCK_SIZE;
> -			    continue;
> +				/* skip to next block, if any */
> +				off = boff * ISO_DEFAULT_BLOCK_SIZE;
> +				continue;
> 			} else {
> -			    off += isonum_711(dp->length);
> +				off += isonum_711(dp->length);
> 			}
> 		}
> 		if (off >= dsize) {

Fixing the remaining style bugs gives:

[Delete blank line here.]
 			/* If the new block has zero length, it is padding. */
 			if (isonum_711(dp->length) == 0) {
 				/* Skip to next block, if any. */
 				off = boff * ISO_DEFAULT_BLOCK_SIZE;
 				continue;
 			}
 			off += isonum_711(dp->length);

Bruce



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