compiler warnings fixes.
parent
fa46de6b6f
commit
62579b84d4
|
@ -523,7 +523,7 @@ static void copy_cluster(int rescue, u64 rescue_lcn)
|
|||
for (i = 0; i < csize; i += NTFS_SECTOR_SIZE)
|
||||
rescue_sector(fd, rescue_pos + i, buff + i);
|
||||
} else {
|
||||
Printf(bad_sectors_warning_msg);
|
||||
Printf("%s", bad_sectors_warning_msg);
|
||||
err_exit("Disk is faulty, can't make full backup!");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -768,9 +768,9 @@ static ntfs_volume *mount_volume(const char *volume)
|
|||
if (err == EINVAL)
|
||||
printf(invalid_ntfs_msg, volume);
|
||||
else if (err == EIO)
|
||||
printf(corrupt_volume_msg);
|
||||
puts(corrupt_volume_msg);
|
||||
else if (err == EPERM)
|
||||
printf(hibernated_volume_msg);
|
||||
puts(hibernated_volume_msg);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -93,9 +93,9 @@ struct {
|
|||
char *volume;
|
||||
} opt;
|
||||
|
||||
static int usage(void) __attribute__((noreturn));
|
||||
static int usage(void)
|
||||
{
|
||||
|
||||
printf("%s v%s\n"
|
||||
"\n"
|
||||
"Usage: %s [options] device\n"
|
||||
|
|
|
@ -475,7 +475,7 @@ static void ntfs_dump_flags(ATTR_TYPES type, u32 flags)
|
|||
|
||||
static void ntfs_dump_namespace(u8 file_name_type)
|
||||
{
|
||||
const char *mbs_file_type = NULL;
|
||||
const char *mbs_file_type;
|
||||
|
||||
/* name space */
|
||||
switch (file_name_type) {
|
||||
|
@ -491,9 +491,9 @@ static void ntfs_dump_namespace(u8 file_name_type)
|
|||
case FILE_NAME_WIN32_AND_DOS:
|
||||
mbs_file_type = "Win32 & DOS";
|
||||
break;
|
||||
default:
|
||||
mbs_file_type = "(unknown)";
|
||||
}
|
||||
if (mbs_file_type == NULL) /* should never happen */
|
||||
mbs_file_type = "(unknown)";
|
||||
printf("\tNamespace:\t\t %s\n", mbs_file_type);
|
||||
}
|
||||
|
||||
|
@ -982,7 +982,7 @@ static void ntfs_dump_attr_volume_information(ATTR_RECORD *attr)
|
|||
|
||||
printf("\tAttribute instance:\t %u\n", le16_to_cpu(attr->instance));
|
||||
|
||||
printf("\tVolume Version:\t %d.%d\n", vol_information->major_ver,
|
||||
printf("\tVolume Version:\t\t %d.%d\n", vol_information->major_ver,
|
||||
vol_information->minor_ver);
|
||||
printf("\tFlags:\t\t\t ");
|
||||
if (vol_information->flags & VOLUME_IS_DIRTY)
|
||||
|
|
|
@ -821,7 +821,7 @@ static void build_lcn_usage_bitmap(ntfs_volume *vol, ntfsck_t *fsck)
|
|||
int err = errno;
|
||||
perr_printf("ntfs_decompress_mapping_pairs");
|
||||
if (err == EIO)
|
||||
printf(corrupt_volume_msg);
|
||||
puts(corrupt_volume_msg);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -972,7 +972,7 @@ done:
|
|||
if (mismatch) {
|
||||
err_printf("Filesystem check failed! Totally %d cluster "
|
||||
"accounting mismatches.\n", mismatch);
|
||||
printf(corrupt_volume_msg);
|
||||
puts(corrupt_volume_msg);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -2212,11 +2212,11 @@ static ntfs_volume *mount_volume(void)
|
|||
if (err == EINVAL)
|
||||
printf(invalid_ntfs_msg, opt.volume);
|
||||
else if (err == EIO)
|
||||
printf(corrupt_volume_msg);
|
||||
puts(corrupt_volume_msg);
|
||||
else if (err == EPERM)
|
||||
printf(hibernated_volume_msg);
|
||||
puts(hibernated_volume_msg);
|
||||
else if (err == EOPNOTSUPP)
|
||||
printf(unclean_journal_msg);
|
||||
puts(unclean_journal_msg);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -2294,7 +2294,7 @@ static void check_resize_constraints(ntfs_resize_t *resize)
|
|||
resize->badclusters,
|
||||
resize->badclusters - 1 ? "s" : "");
|
||||
if (!opt.badsectors) {
|
||||
printf(bad_sectors_warning_msg);
|
||||
puts(bad_sectors_warning_msg);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -2398,7 +2398,7 @@ int main(int argc, char **argv)
|
|||
if (fsck.multi_ref)
|
||||
err_printf("%d clusters are referenced multiply"
|
||||
" times.\n", fsck.multi_ref);
|
||||
printf(corrupt_volume_msg);
|
||||
puts(corrupt_volume_msg);
|
||||
exit(1);
|
||||
}
|
||||
compare_bitmaps(vol, &fsck.lcn_bitmap);
|
||||
|
@ -2427,7 +2427,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (opt.force-- <= 0 && !opt.ro_flag) {
|
||||
printf(resize_warning_msg);
|
||||
puts(resize_warning_msg);
|
||||
proceed_question();
|
||||
}
|
||||
|
||||
|
@ -2456,7 +2456,7 @@ int main(int argc, char **argv)
|
|||
|
||||
printf("Successfully resized NTFS on device '%s'.\n", vol->dev->d_name);
|
||||
if (resize.shrink)
|
||||
printf(resize_important_msg);
|
||||
puts(resize_important_msg);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1274,7 +1274,7 @@ static void dump_record (struct ufile *file)
|
|||
if (!(f->flags & (FILE_ATTR_SYSTEM | FILE_ATTR_DIRECTORY |
|
||||
FILE_ATTR_SPARSE_FILE | FILE_ATTR_REPARSE_POINT |
|
||||
FILE_ATTR_COMPRESSED | FILE_ATTR_ENCRYPTED))) {
|
||||
Qprintf (NONE);
|
||||
Qprintf ("%s", NONE);
|
||||
}
|
||||
|
||||
Qprintf ("\n");
|
||||
|
|
Loading…
Reference in New Issue