diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-09 19:10:49 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-09 19:10:49 +0100 |
commit | dc698bb038756a926aaa529bda1b939eab2c1676 (patch) | |
tree | 4084a40897d9d81816228935a1398e80dd4b173b /util-linux/mkfs_vfat.c | |
parent | 0681137972dc89b5003b0415e09184c0ecf1c875 (diff) | |
download | busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.tar.gz busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.tar.bz2 busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.zip |
*: make it easier to distinquish "struct tm", pointer to one, etc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mkfs_vfat.c')
-rw-r--r-- | util-linux/mkfs_vfat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c index e794b3145..54c068d0b 100644 --- a/util-linux/mkfs_vfat.c +++ b/util-linux/mkfs_vfat.c | |||
@@ -538,16 +538,16 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv) | |||
538 | // create dir entry for volume_label | 538 | // create dir entry for volume_label |
539 | struct msdos_dir_entry *de; | 539 | struct msdos_dir_entry *de; |
540 | #if 0 | 540 | #if 0 |
541 | struct tm tm; | 541 | struct tm tm_time; |
542 | uint16_t t, d; | 542 | uint16_t t, d; |
543 | #endif | 543 | #endif |
544 | de = (void*)buf; | 544 | de = (void*)buf; |
545 | strncpy(de->name, volume_label, sizeof(de->name)); | 545 | strncpy(de->name, volume_label, sizeof(de->name)); |
546 | STORE_LE(de->attr, ATTR_VOLUME); | 546 | STORE_LE(de->attr, ATTR_VOLUME); |
547 | #if 0 | 547 | #if 0 |
548 | localtime_r(&create_time, &tm); | 548 | localtime_r(&create_time, &tm_time); |
549 | t = (tm.tm_sec >> 1) + (tm.tm_min << 5) + (tm.tm_hour << 11); | 549 | t = (tm_time.tm_sec >> 1) + (tm_time.tm_min << 5) + (tm_time.tm_hour << 11); |
550 | d = tm.tm_mday + ((tm.tm_mon+1) << 5) + ((tm.tm_year-80) << 9); | 550 | d = tm_time.tm_mday + ((tm_time.tm_mon+1) << 5) + ((tm_time.tm_year-80) << 9); |
551 | STORE_LE(de->time, t); | 551 | STORE_LE(de->time, t); |
552 | STORE_LE(de->date, d); | 552 | STORE_LE(de->date, d); |
553 | //STORE_LE(de->ctime_cs, 0); | 553 | //STORE_LE(de->ctime_cs, 0); |