aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-10-12 00:26:34 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-10-12 00:26:34 +0530
commitc54f50cf4feae08353cac966151e5cfd7bd5c6cc (patch)
tree106b20e04fe6610517e346e91c58470502fc8c1f
parentd1d491c102f5da1bf6a2c8c21fa71530e74f90d3 (diff)
downloadnnn-c54f50cf4feae08353cac966151e5cfd7bd5c6cc.tar.gz
Remove unused param
-rw-r--r--src/nnn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nnn.c b/src/nnn.c
index afbda1f..b2342d4 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2793,7 +2793,7 @@ static bool create_dir(const char *path)
return TRUE;
}
-static bool sshfs_mount(char *path, char *newpath, int *presel)
+static bool sshfs_mount(char *newpath, int *presel)
{
uchar flag = F_NORMAL;
int r;
@@ -2835,7 +2835,7 @@ static bool sshfs_mount(char *path, char *newpath, int *presel)
return TRUE;
}
-static bool sshfs_unmount(char *path, char *newpath, int *presel)
+static bool sshfs_unmount(char *newpath, int *presel)
{
static char cmd[] = "fusermount3"; /* Arch Linux utility */
static bool found = FALSE;
@@ -4578,7 +4578,7 @@ nochange:
/* Repopulate as directory content may have changed */
goto begin;
case SEL_SSHFS:
- if (!sshfs_mount(path, newpath, &presel))
+ if (!sshfs_mount(newpath, &presel))
goto nochange;
lastname[0] = '\0';
@@ -4592,7 +4592,7 @@ nochange:
setdirwatch();
goto begin;
case SEL_UMOUNT:
- sshfs_unmount(path, newpath, &presel);
+ sshfs_unmount(newpath, &presel);
goto nochange;
case SEL_QUITCD: // fallthrough
case SEL_QUIT: