aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorGravatar sin <sin@2f30.org>2014-10-22 17:26:35 +0100
committerGravatar sin <sin@2f30.org>2014-10-22 17:26:35 +0100
commit789f9336f4bc2c73158e86cb6952726d63e70ec4 (patch)
treed04e77efb82be7b5fd07be1fa88ff898ef7cafac /noice.c
parent48f9c5a79df7431c60aee74ddea0d4a47384a373 (diff)
downloadnnn-789f9336f4bc2c73158e86cb6952726d63e70ec4.tar.gz
Rename testopendir() to canopendir()
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/noice.c b/noice.c
index 9a9fc6a..89db4bd 100644
--- a/noice.c
+++ b/noice.c
@@ -396,7 +396,7 @@ readln(void)
}
int
-testopendir(char *path)
+canopendir(char *path)
{
DIR *dirp;
@@ -615,7 +615,7 @@ nochange:
/* There is no going back */
if (strcmp(path, "/") == 0)
goto nochange;
- if (testopendir(path) == 0) {
+ if (canopendir(path) == 0) {
printwarn();
goto nochange;
}
@@ -646,7 +646,7 @@ nochange:
switch (sb.st_mode & S_IFMT) {
case S_IFDIR:
- if (testopendir(path) == 0) {
+ if (canopendir(path) == 0) {
printwarn();
goto nochange;
}
@@ -705,7 +705,7 @@ nochange:
clearprompt();
goto nochange;
}
- if (testopendir(tmp) == 0) {
+ if (canopendir(tmp) == 0) {
printwarn();
goto nochange;
}
@@ -753,7 +753,7 @@ main(int argc, char *argv[])
}
/* Test initial path */
- if (testopendir(ipath) == 0)
+ if (canopendir(ipath) == 0)
printerr(1, ipath);
/* Set locale before curses setup */