You shall compile before you commit - I must have forgotten to save the file

on the previous try (I definitely built mountvolume & mount after the changes).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14453 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-10-20 13:21:10 +00:00
parent 09b3f55cb1
commit 4daad1792e
1 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ main(int argc, char **argv)
const char *parameter = NULL;
const char *fs = NULL;
struct stat mountStat;
dev_t device;
dev_t volume;
uint32 flags = 0;
/* prettify the program name */
@ -77,9 +77,9 @@ main(int argc, char **argv)
/* do the work */
device = fs_mount_volume(mountPoint, device, fs, flags, parameter);
if (device < B_OK) {
fprintf(stderr, "%s: %s\n", programName, strerror(device));
volume = fs_mount_volume(mountPoint, device, fs, flags, parameter);
if (volume < B_OK) {
fprintf(stderr, "%s: %s\n", programName, strerror(volume));
return -1;
}
return 0;