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:
parent
09b3f55cb1
commit
4daad1792e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user