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