io_check_*()/io_file_exist(): Fix signatures
This was broken in commit 87fb8cfec0. Fix
function signatures and update all invocations accordingly.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
6
src/io.c
6
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;
|
||||
|
||||
Reference in New Issue
Block a user