From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt3FB-0005DW-N4 for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt3F5-00057b-PT for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:36 -0400 Received: from [199.232.76.173] (port=44790 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt3F5-00057V-JH for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:31 -0400 Received: from mx20.gnu.org ([199.232.41.8]:48994) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mt3F5-0006MQ-5N for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt3F4-0005Nr-Aq for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:45:30 -0400 Date: Wed, 30 Sep 2009 19:43:31 +0200 From: "Michael S. Tsirkin" Message-ID: <20090930174331.GB1399@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH 01/13] vvfat: fix coding style nit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org Put space between = and & when taking a pointer, to avoid confusion with old-style "&=". Signed-off-by: Michael S. Tsirkin --- block/vvfat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 1e37b9f..063f731 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -379,7 +379,7 @@ static void init_mbr(BDRVVVFATState* s) { /* TODO: if the files mbr.img and bootsect.img exist, use them */ mbr_t* real_mbr=(mbr_t*)s->first_sectors; - partition_t* partition=&(real_mbr->partition[0]); + partition_t* partition = &(real_mbr->partition[0]); int lba; memset(s->first_sectors,0,512); @@ -526,7 +526,7 @@ static uint16_t fat_datetime(time_t time,int return_time) { t=localtime(&time); /* this is not thread safe */ #else struct tm t1; - t=&t1; + t = &t1; localtime_r(&time,t); #endif if(return_time) -- 1.6.5.rc2