So far we were returning mount point which doesn't make sense for a
function that already takes mount point as an argument.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
+/*
+ * Find path of a device mounted to the given point.
+ */
char*
find_mount(char *mp)
{
char*
find_mount(char *mp)
{
fclose(fp);
return NULL;
}
fclose(fp);
return NULL;
}
t++;
s = strstr(t, " ");
if (!s) {
t++;
s = strstr(t, " ");
if (!s) {
if (!strcmp(t, mp)) {
fclose(fp);
if (!strcmp(t, mp)) {
fclose(fp);