mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-27 12:02:04 -06:00
vvfat: fix coding style nit
Put space between = and & when taking a pointer, to avoid confusion with old-style "&=". Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
4839abe78f
commit
6ab00cee70
1 changed files with 2 additions and 2 deletions
|
@ -379,7 +379,7 @@ static void init_mbr(BDRVVVFATState* s)
|
||||||
{
|
{
|
||||||
/* TODO: if the files mbr.img and bootsect.img exist, use them */
|
/* TODO: if the files mbr.img and bootsect.img exist, use them */
|
||||||
mbr_t* real_mbr=(mbr_t*)s->first_sectors;
|
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;
|
int lba;
|
||||||
|
|
||||||
memset(s->first_sectors,0,512);
|
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 */
|
t=localtime(&time); /* this is not thread safe */
|
||||||
#else
|
#else
|
||||||
struct tm t1;
|
struct tm t1;
|
||||||
t=&t1;
|
t = &t1;
|
||||||
localtime_r(&time,t);
|
localtime_r(&time,t);
|
||||||
#endif
|
#endif
|
||||||
if(return_time)
|
if(return_time)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue