summaryrefslogtreecommitdiff
path: root/libs/pbd/mountpoint.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
committerRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
commit22b07e0233a29d9633ffa825a79503befaf2e16e (patch)
tree1d8b06056f8e12197158f5d906319767d3dedda5 /libs/pbd/mountpoint.cc
parente11ba7b79d68bc1070b170236c22123966d7bcc3 (diff)
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'libs/pbd/mountpoint.cc')
-rw-r--r--libs/pbd/mountpoint.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/mountpoint.cc b/libs/pbd/mountpoint.cc
index 4867d3675c..82aaadb9eb 100644
--- a/libs/pbd/mountpoint.cc
+++ b/libs/pbd/mountpoint.cc
@@ -50,7 +50,7 @@ mountpoint (string path)
unsigned int matchlen;
const char *cpath = path.c_str();
char best[PATH_MAX+1];
-
+
if ((mntf = setmntent ("/etc/mtab", "r")) == 0) {
return "";
}
@@ -122,10 +122,10 @@ mountpoint (string path)
unsigned int matchlen;
const char *cpath = path.c_str();
char best[PATH_MAX+1];
-
+
/* From the manpage, under "BUGS" : "The memory allocated by getmntinfo() cannot be free(3)'d by the
application."
-
+
Thus: we do NOT try to free memory allocated by getmntinfo()
*/
@@ -163,13 +163,13 @@ mountpoint (string path)
}
}
}
-
+
return best;
}
#endif // HAVE_GETMNTENT
#ifdef TEST_MOUNTPOINT
-
+
main (int argc, char *argv[])
{
printf ("mp of %s = %s\n", argv[1], mountpoint (argv[1]).c_str());