summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-26 01:32:57 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-26 01:49:04 +0100
commit9a6b875b1d6876db30d3e3438ed28dd460970025 (patch)
tree980ea8b88c415dd0e3e2b5f458615aa8ee9868a5 /src/io.c
parent225a310de19782560801d629bf97a32ccb4f967b (diff)
downloadcalcurse-9a6b875b1d6876db30d3e3438ed28dd460970025.zip
io_check_*()/io_file_exist(): Fix signatures
This was broken in commit 87fb8cfec0d8e8fc901746095458bd316314b6ee. Fix function signatures and update all invocations accordingly. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io.c b/src/io.c
index 1988179..b8fccfd 100644
--- a/src/io.c
+++ b/src/io.c
@@ -793,7 +793,7 @@ void io_load_keys(const char *pager)
WARN_MSG(_("Some actions do not have any associated key bindings!"));
}
-void io_check_dir(char *dir, int *missing)
+int io_check_dir(const char *dir)
{
if (read_only)
return -1;
@@ -812,7 +812,7 @@ void io_check_dir(char *dir, int *missing)
}
}
-unsigned io_file_exist(char *file)
+unsigned io_file_exist(const char *file)
{
FILE *fd;
@@ -825,7 +825,7 @@ unsigned io_file_exist(char *file)
}
}
-unsigned io_check_file(char *file)
+int io_check_file(const char *file)
{
if (read_only)
return -1;