exist_file() is inline now.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-11-11 10:42:59 +03:00
parent d543be11d9
commit d154b0f676
2 changed files with 6 additions and 10 deletions

View File

@ -659,14 +659,6 @@ extension (const char *filename)
/* --------------------------------------------------------------------------------------------- */
int
exist_file (const char *name)
{
return access (name, R_OK) == 0;
}
/* --------------------------------------------------------------------------------------------- */
int
check_for_default (const char *default_file, const char *file)
{

View File

@ -156,8 +156,6 @@ void init_uid_gid_cache (void);
char *get_group (int);
char *get_owner (int);
int exist_file (const char *name);
/* Check if the file exists. If not copy the default */
int check_for_default (const char *default_file, const char *file);
@ -224,4 +222,10 @@ char *guess_message_value (void);
/*** inline functions **************************************************/
static inline gboolean
exist_file (const char *name)
{
return (access (name, R_OK) == 0);
}
#endif /* MC_UTIL_H */