From beac8bdd9be41c0bc17d85429ca74b4f6aa99a3e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 17 Jul 2013 09:56:56 +0200 Subject: Rename io_file_exist{,s}() Signed-off-by: Lukas Fleischer --- src/calcurse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index 00181b7..2588721 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -507,7 +507,7 @@ static inline void key_generic_cmd(void) topic_res = "intro"; snprintf(path, BUFSIZ, DOCDIR "/%s.txt", topic_res); - if (!io_file_exist(path) && keys_str2int(topic_res) > 0 && + if (!io_file_exists(path) && keys_str2int(topic_res) > 0 && keys_get_action(keys_str2int(topic_res)) > 0) { int ch = keys_str2int(topic_res); enum key action = keys_get_action(ch); @@ -515,7 +515,7 @@ static inline void key_generic_cmd(void) snprintf(path, BUFSIZ, DOCDIR "/%s.txt", topic_res); } - if (!io_file_exist(path)) { + if (!io_file_exists(path)) { if (!strcmp(topic_res, "generic-credits")) topic_res = "credits"; else if (!strcmp(topic_res, "generic-help")) @@ -598,7 +598,7 @@ static inline void key_generic_cmd(void) } - if (io_file_exist(path)) { + if (io_file_exists(path)) { wins_launch_external(path, conf.pager); } else { char error_msg[BUFSIZ]; -- cgit v1.2.3-54-g00ecf