git-svn-id: https://profuse.googlecode.com/svn/branches/v2@315 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock 2010-05-31 17:54:45 +00:00
parent fedcc06840
commit 345927d4b2
2 changed files with 7 additions and 7 deletions

View File

@ -586,7 +586,7 @@ int action_rm(int argc, char **argv, Pascal::VolumeEntry *volume)
argv += optind;
// TODO -- catch errors ?
for (unsigned i = 0; i < argc; ++i)
for (int i = 0; i < argc; ++i)
{
Pascal::FileEntry *e = volume->fileByName(argv[i]);

View File

@ -176,14 +176,14 @@ int main(int argc, char **argv)
break;
case 'f':
format = Device::BlockDevice::ImageType(optarg);
if (format == 0)
{
format = Device::BlockDevice::ImageType(optarg);
if (format == 0)
{
std::fprintf(stderr, "Error: `%s' is not a supported disk image format.\n", optarg);
return -1;
}
std::fprintf(stderr, "Error: `%s' is not a supported disk image format.\n", optarg);
return -1;
}
break;
case 'b':
bootFile = optarg;
break;