From 4daad1792e6d107d78fb0706555027e0a0bd27fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 20 Oct 2005 13:21:10 +0000 Subject: [PATCH] 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 --- src/bin/mount.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/mount.c b/src/bin/mount.c index a6421a52df..bc406673b2 100644 --- a/src/bin/mount.c +++ b/src/bin/mount.c @@ -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;