All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Btrfs-progs: add correct indentation
@ 2013-02-22  6:59 Anand Jain
  2013-02-27 15:45 ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: Anand Jain @ 2013-02-22  6:59 UTC (permalink / raw)
  To: linux-btrfs

A trivial fix, corrects the indentation.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 utils.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/utils.c b/utils.c
index d660507..9c2e510 100644
--- a/utils.c
+++ b/utils.c
@@ -1192,12 +1192,13 @@ scan_again:
 		return -ENOENT;
 	}
 	/* skip the header */
-	for(i=0; i < 2 ; i++)
-		if(!fgets(buf, 1023, proc_partitions)){
-		fprintf(stderr, "Unable to read '/proc/partitions' for scanning\n");
-		fclose(proc_partitions);
-		return -ENOENT;
-	}
+	for (i=0; i < 2 ; i++)
+		if (!fgets(buf, 1023, proc_partitions)) {
+			fprintf(stderr,
+				"Unable to read '/proc/partitions' for scanning\n");
+			fclose(proc_partitions);
+			return -ENOENT;
+		}
 
 	strcpy(fullpath,"/dev/");
 	while(fgets(buf, 1023, proc_partitions)) {
-- 
1.8.1.227.g44fe835


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Btrfs-progs: add correct indentation
  2013-02-22  6:59 [PATCH] Btrfs-progs: add correct indentation Anand Jain
@ 2013-02-27 15:45 ` David Sterba
  2013-02-28  1:52   ` Anand Jain
  0 siblings, 1 reply; 3+ messages in thread
From: David Sterba @ 2013-02-27 15:45 UTC (permalink / raw)
  To: Anand Jain; +Cc: linux-btrfs

On Fri, Feb 22, 2013 at 02:59:24PM +0800, Anand Jain wrote:
> --- a/utils.c
> +++ b/utils.c
> @@ -1192,12 +1192,13 @@ scan_again:
>  		return -ENOENT;
>  	}
>  	/* skip the header */
> -	for(i=0; i < 2 ; i++)
> -		if(!fgets(buf, 1023, proc_partitions)){
> -		fprintf(stderr, "Unable to read '/proc/partitions' for scanning\n");
> -		fclose(proc_partitions);
> -		return -ENOENT;
> -	}
> +	for (i=0; i < 2 ; i++)

	for (i = 0; i < 2; i++)

If possible, It's good to fix these issues in one go, I'll fix it locally.

david

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Btrfs-progs: add correct indentation
  2013-02-27 15:45 ` David Sterba
@ 2013-02-28  1:52   ` Anand Jain
  0 siblings, 0 replies; 3+ messages in thread
From: Anand Jain @ 2013-02-28  1:52 UTC (permalink / raw)
  To: dsterba, linux-btrfs



On 02/27/2013 11:45 PM, David Sterba wrote:
> On Fri, Feb 22, 2013 at 02:59:24PM +0800, Anand Jain wrote:
>> --- a/utils.c
>> +++ b/utils.c
>> @@ -1192,12 +1192,13 @@ scan_again:
>>   		return -ENOENT;
>>   	}
>>   	/* skip the header */
>> -	for(i=0; i < 2 ; i++)
>> -		if(!fgets(buf, 1023, proc_partitions)){
>> -		fprintf(stderr, "Unable to read '/proc/partitions' for scanning\n");
>> -		fclose(proc_partitions);
>> -		return -ENOENT;
>> -	}
>> +	for (i=0; i < 2 ; i++)
>
> 	for (i = 0; i < 2; i++)
>
> If possible, It's good to fix these issues in one go, I'll fix it locally.

  Absolutely. Sorry my mistake. A new patch below if it helps. Thanks

Anand

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-28  1:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22  6:59 [PATCH] Btrfs-progs: add correct indentation Anand Jain
2013-02-27 15:45 ` David Sterba
2013-02-28  1:52   ` Anand Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.